automatically add ssh keys to the agent on login

This commit is contained in:
Sami Samhuri 2016-12-17 08:05:08 -08:00
parent 61a9ba8f65
commit 0977eeb707
No known key found for this signature in database
GPG key ID: F76F41F04D99808F

3
zshrc
View file

@ -288,6 +288,9 @@ if is_interactive && command_exists keychain && [[ -d ~/.ssh ]]; then
source $KEYCHAINFILE >/dev/null
fi
fi
if is_interactive && command_exists ssh-add && [[ -d ~/.ssh ]]; then
ssh-add -A
fi
# 12. rbenv and pyenv
# ===================