aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-06-24 15:17:23 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-06-24 15:17:23 +1200
commit758dac3a45de0dd904fe145b99730fcecc85cd9e (patch)
tree06c6525dde7584845640c6c7ec6d5ac3cffd3f90 /sh
parentUse correct Bash arguments expansion (diff)
downloaddotfiles-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')
-rw-r--r--sh/profile.d/keychain.sh6
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`
+