dotfiles/shell/ssh

6 lines
182 B
Text
Executable file

# ssh keychain, if no agent set
if [ -z "$SSH_AUTH_SOCK" ]; then
if which keychain 2>&1 >/dev/null; then
eval $(keychain --eval --agents ssh -Q --quiet id_rsa)
fi
fi