diff options
author | Ryan Kavanagh <rak@rak.ac> | 2023-01-11 22:01:01 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2023-01-11 22:01:30 -0500 |
commit | 674fa581b16943fad75960f8a25646984807727b (patch) | |
tree | b745bf088188bede2c02bd8bbe71827cb28cc1c0 | |
parent | update asteria-work layout (diff) |
better manage --systemd keychain
-rw-r--r-- | dot_zshrc.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index bd59b0e..3f9c383 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -652,7 +652,9 @@ NO_verbose \ # GPG / SSH AGENT if command -v keychain > /dev/null && test -d ~/.ssh/keys/{{ .chezmoi.hostname }}; then - ls ~/.ssh/keys/{{ .chezmoi.hostname }}/id_* | grep -E -v '\.pub$' | xargs keychain --systemd + ls ~/.ssh/keys/{{ .chezmoi.hostname }}/id_* | \ + grep -E -v '\.pub$' | \ + xargs keychain {{ if (eq .chezmoi.os "linux") -}} --systemd {{- end }} [ -z "$HOSTNAME" ] && HOSTNAME=`uname -n` [ -f $HOME/.keychain/$HOSTNAME-sh ] && . $HOME/.keychain/$HOSTNAME-sh |