From d0b4e80578f04d6bef35eeb7f01de0141a7148ee Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 23 Feb 2012 12:21:38 +0100 Subject: [PATCH] ssh keychain support --- profile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profile b/profile index db1938c..da2a169 100644 --- a/profile +++ b/profile @@ -40,3 +40,10 @@ GREP_OPTIONS='--color=auto' CLICOLOR=1; 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 +