From: Mark Wooding Date: Sun, 2 May 2010 19:58:34 +0000 (+0100) Subject: dot/bash_profile: Use gnome-keyring-daemon's SSH agent if available. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/1ee519346fac51178b3e3e55565531f0cdd4d4be?ds=sidebyside;hp=c035e794d622d7074c8fa94e18cb5ddfea7c36a1 dot/bash_profile: Use gnome-keyring-daemon's SSH agent if available. Quick check before trying to crank up our own agent. --- diff --git a/dot/bash_profile b/dot/bash_profile index 513f754..69fbebf 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -198,6 +198,10 @@ ulimit -S -c 0 # --- Start an ssh authentication agent --- +if stuff=$(gnome-keyring-daemon -s 2>/dev/null); then + eval "$stuff"; export GNOME_KEYRING_CONTROL SSH_AUTH_SOCK +fi + eval `start-ssh-agent -b` if [ -z "$__mdw_bashrc" ] && [ "$__mdw_force_secure_session" = "yes" ] ||