diff options
author | Ryan Kavanagh <rak@rak.ac> | 2022-07-06 21:42:59 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2022-07-06 21:42:59 -0400 |
commit | 5859c1c7ffb8246efee7c0fd3db0f443f1bc80f5 (patch) | |
tree | 31d153a90bbd0c6c39082e221acb3a17944bbdc5 | |
parent | Prefer per-uname gitstatusd if it exists; do not complain about missing other... (diff) |
Check if keys exist before calling keychain
-rw-r--r-- | dot_zshrc.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 5169add..09cc74c 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -646,7 +646,7 @@ NO_verbose \ # GPG / SSH AGENT -if command -v keychain > /dev/null; then +if command -v keychain > /dev/null && test -d ~/.ssh/keys/{{ .chezmoi.hostname }}; then ls ~/.ssh/keys/{{ .chezmoi.hostname }}/id_* | egrep -v '\.pub$' | xargs keychain [ -z "$HOSTNAME" ] && HOSTNAME=`uname -n` [ -f $HOME/.keychain/$HOSTNAME-sh ] && |