From 1cac6e8b491ba69fa28c9fb08bab88e81e78811b Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 11 Apr 2014 23:38:45 +0200 Subject: Adding work specific dropping of gpg --- .zsh.before/keychain.zsh | 12 +++++++++--- 1 file 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 -- cgit v1.2.3-70-g09d2