From 1ee519346fac51178b3e3e55565531f0cdd4d4be Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 2 May 2010 20:58:34 +0100 Subject: [PATCH] dot/bash_profile: Use gnome-keyring-daemon's SSH agent if available. Quick check before trying to crank up our own agent. --- dot/bash_profile | 4 ++++ 1 file changed, 4 insertions(+) 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" ] || -- 2.11.0