ssh keychain support

This commit is contained in:
Loic Nageleisen 2012-02-23 12:21:38 +01:00
parent ef06ff6c8a
commit d0b4e80578

View file

@ -40,3 +40,10 @@ GREP_OPTIONS='--color=auto'
CLICOLOR=1; CLICOLOR=1;
export GREP_OPTIONS CLICOLOR export GREP_OPTIONS CLICOLOR
# 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