diff bin/setup-X.sh @ 497:2e51a55d303d

bin/setup-X.sh
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 14 Aug 2013 10:25:08 -0700
parents f783b7d4516b
children 155c8a6b471e
line wrap: on
line diff
--- a/bin/setup-X.sh	Wed Aug 14 09:23:28 2013 -0700
+++ b/bin/setup-X.sh	Wed Aug 14 10:25:08 2013 -0700
@@ -16,4 +16,12 @@
 
 # TODO: add workspace specific programs
 
-# ssh-add
\ No newline at end of file
+# ssh-add
+if [[ `ssh-add -l` != *id_?sa* ]]
+then
+ SSH_ASKPASS=/usr/bin/ksshaskpass
+ if [[ -e $SSH_ASKPASS ]]
+ then
+   ssh-add
+ fi
+fi
\ No newline at end of file