From 29ca65ec24bd3fa51126d47c0a3397ed6087f823 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sun, 8 Sep 2024 12:17:10 -0400 Subject: fix keychain bug in zshrc --- dot_zshrc.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dot_zshrc.tmpl') diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index ed06714..c672966 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -587,9 +587,7 @@ 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 {{ if (eq .chezmoi.os "linux") -}} --systemd {{- end }} + keychain {{ if (eq .chezmoi.os "linux") -}} --systemd {{- end }} ~/.ssh/keys/{{ .chezmoi.hostname }}/id_*[^p][^u][^b] [ -z "$HOSTNAME" ] && HOSTNAME=`uname -n` [ -f $HOME/.keychain/$HOSTNAME-sh ] && . $HOME/.keychain/$HOSTNAME-sh -- cgit v1.2.3