diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-06-24 15:17:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-06-24 15:17:23 +1200 |
commit | 758dac3a45de0dd904fe145b99730fcecc85cd9e (patch) | |
tree | 06c6525dde7584845640c6c7ec6d5ac3cffd3f90 /sh/profile.d/keychain.sh | |
parent | Use correct Bash arguments expansion (diff) | |
download | dotfiles-758dac3a45de0dd904fe145b99730fcecc85cd9e.tar.gz dotfiles-758dac3a45de0dd904fe145b99730fcecc85cd9e.zip |
Sharing keychain(1) profile script
Designed to be a quiet no-op on systems where keychain(1) is
unavailable, and not to bleat about missing keys, trying the three
default ones
Diffstat (limited to 'sh/profile.d/keychain.sh')
-rw-r--r-- | sh/profile.d/keychain.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh new file mode 100644 index 00000000..9d7f5e23 --- /dev/null +++ b/sh/profile.d/keychain.sh @@ -0,0 +1,6 @@ +# Keychain +command -v ssh-askpass >/dev/null \ + && export SSH_ASKPASS=`which ssh-askpass` +command -v keychain >/dev/null \ + && eval `keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda` + |