ssh: fix agent forwarding w/ tmux
This commit is contained in:
parent
0bcec5234a
commit
97732a4830
@ -12,10 +12,9 @@ bind Escape copy-mode
|
||||
#bind-key -t vi-copy 'v' begin-selection
|
||||
#bind-key -t vi-copy 'y' copy-selection
|
||||
|
||||
# remove SSH_AUTH_SOCK from update-environment, otherwise setting
|
||||
# it specifically doesn't work
|
||||
|
||||
# remove SSH_AUTH_SOCK from update-environment, otherwise setting it specifically doesn't work
|
||||
set-option -g update-environment "DISPLAY LANG LC_ALL SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
|
||||
|
||||
set-environment -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
|
||||
|
||||
set -g escape-time 10
|
||||
|
||||
@ -24,11 +24,6 @@ if [ -e /usr/bin/keychain ]; then
|
||||
eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet id_ed25519)
|
||||
fi
|
||||
|
||||
if [ -n "$SSH_AUTH_SOCK" ]; then
|
||||
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
|
||||
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
||||
fi
|
||||
|
||||
# direnv setup
|
||||
whence -p direnv &>/dev/null && eval "$(direnv hook zsh)"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user