zsh: fix ssh agent forwarding
This commit is contained in:
parent
32f984e25a
commit
2b718ede6d
@ -24,6 +24,13 @@ case $TERM in
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "$SSH_AUTH_SOCK" ]; then
|
||||
if [ "$SSH_AUTH_SOCK" != ~/.ssh/ssh_auth_sock ]; then
|
||||
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
|
||||
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e /usr/bin/keychain ]; then
|
||||
eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet id_ed25519)
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user