aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-04-11 23:38:45 +0200
committerDavid Runge <david.runge@frqrec.com>2014-04-11 23:38:45 +0200
commit1cac6e8b491ba69fa28c9fb08bab88e81e78811b (patch)
tree75dc2600eff5eae99e251045fe9d9135bb1f097c
parent1665f247a5c3f94eb5420f36f37adfa38e6760d2 (diff)
downloaddotfiles-1cac6e8b491ba69fa28c9fb08bab88e81e78811b.tar.gz
dotfiles-1cac6e8b491ba69fa28c9fb08bab88e81e78811b.tar.bz2
dotfiles-1cac6e8b491ba69fa28c9fb08bab88e81e78811b.tar.xz
dotfiles-1cac6e8b491ba69fa28c9fb08bab88e81e78811b.zip
Adding work specific dropping of gpg
-rw-r--r--.zsh.before/keychain.zsh12
1 files changed, 9 insertions, 3 deletions
diff --git a/.zsh.before/keychain.zsh b/.zsh.before/keychain.zsh
index b73daff..b1b1330 100644
--- a/.zsh.before/keychain.zsh
+++ b/.zsh.before/keychain.zsh
@@ -1,4 +1,10 @@
-if [ -f /usr/bin/keychain ]
-then
- eval $(keychain --eval --agents gpg,ssh -Q --quiet ~/.ssh/id_rsa F5A1A949 )
+if [ -f /usr/bin/keychain ];then
+ case "$HOST" in
+ s4|s5|c*)
+ eval $(keychain --eval --agents ssh -Q --quiet ~/.ssh/id_rsa )
+ ;;
+ *)
+ eval $(keychain --eval --agents gpg,ssh -Q --quiet ~/.ssh/id_rsa F5A1A949 )
+ ;;
+ esac
fi