Mercurial > hg > config
changeset 497:2e51a55d303d
bin/setup-X.sh
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 14 Aug 2013 10:25:08 -0700 |
parents | f783b7d4516b |
children | 95ba5770d2f0 |
files | bin/setup-X.sh |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
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