summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile10
1 files changed, 8 insertions, 2 deletions
diff --git a/.profile b/.profile
index 4c3bc86..2f3250d 100644
--- a/.profile
+++ b/.profile
@@ -29,5 +29,11 @@ if [ -d /usr/lib/ccontrol ]; then
fi
#DISTCC_HOSTS="localhost 192.168.222.252"
-eval `keychain --eval --ignore-missing id_rsa C1A00121`
-ssh-add -L | grep -q @ || monkeysphere subkey-to-ssh-agent
+if [ -x /usr/bin/keychain ]; then
+ eval `keychain --eval --ignore-missing id_rsa C1A00121`
+else
+ gpg-connect-agent /bye
+fi
+if [ -x /usr/bin/monkeysphere ]; then
+ ssh-add -L | grep -q @ || monkeysphere subkey-to-ssh-agent
+fi