aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--.gitignore1
-rw-r--r--sh/profile.d/keychain.sh6
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 6f1d584d..9ae654f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ mutt/signature.*
newsbeuter/urls
sh/profile.d/*
!sh/profile.d/browser.sh
+!sh/profile.d/keychain.sh
urxvt/urxvtd-*
vim/.netrwhist
vim/spell/*
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`
+