diff options
-rw-r--r-- | .zsh.before/keychain.zsh | 12 |
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 |