271 reputation
19
bio website
location
age
visits member for 9 months
seen 1 hour ago
stats profile views 15

2h
comment Why do I have to re-set env vars in tmux when I re-attach?
@ChrisW. This is rather strange. Are you saying that SSH_AUTH_SOCK is being removed from the environment of the new windows? Tmux' man page states that update-environment will remove variables "that do not exist in the source environment [...] as if -r was given to the set-environment command". I think I'm missing a piece of the puzzle, could you perhaps show how you start the ssh-agent? Also, what do show-environment and show-environment -g right after you connect with sshh() ? If you just ssh into the remote machine, what does printenv show?
3h
comment Why do I have to re-set env vars in tmux when I re-attach?
...editing.....
1d
awarded  Commentator
1d
comment Why do I have to re-set env vars in tmux when I re-attach?
@ChrisW. I assumed that the script should be put in the rc file of your login shell on the remote machine. If you login, a new shell is spawned, SSH_AUTH_SOCK is changed and exported. When you then start tmux, it will inherit SSH_AUTH_SOCK from the parent environment. Since the value of SSH_AUTH_SOCK is now fixed, tmux should keep working on subsequent logins... Maybe I misunderstood the problem
2d
answered Why do I have to re-set env vars in tmux when I re-attach?
Mar
14
awarded  Notable Question
Dec
24
awarded  Popular Question
Aug
17
revised loading python when the linux kernel boots
added link to external tutorial about initrd
Aug
17
comment loading python when the linux kernel boots
@Coder404 I only brought up the link to present a possible approach - You'll have to look at the source and Makefiles yourself. The good news is, you don't have to change the Kernel. The bad news is there is no step by step tutorial I know of.
Aug
17
answered loading python when the linux kernel boots
Aug
16
comment Backspace Acting like Enter in Bash
@paxdiablo @Kevdog777 No problem. I'm glad you could fix it using stty. I my mind I was already falling down the Termcap/Terminfo rabbit hole... you don't wanna go there.
Aug
16
comment Backspace Acting like Enter in Bash
@paxdiablo Beat me to it : )
Aug
16
comment Backspace Acting like Enter in Bash
Could you post the output of stty -a?
Aug
15
comment Debugging a Segmentation Fault
could you post the whole backtrace?
Aug
15
revised Why do so many programs live in PATH?
added paragraph about performance
Aug
15
answered Why do so many programs live in PATH?
Aug
15
comment bunzip2 to a different directory
+1 for spreading the word on tar's -C flag. It's really handy, but hardly anyone knows it.
Aug
14
revised Defining key sequences in Evil-mode Emacs
fixed code error
Aug
14
revised Defining key sequences in Evil-mode Emacs
elaborated on the previous answer
Aug
14
comment Defining key sequences in Evil-mode Emacs
@MarkT. You're right... I'll have to dig into the Emacs documentation to hack up a function that does what you want.