zsh: Fix SSH_AUTH_SOCK setting without gpgconf
Alan Pearce alan@alanpearce.eu
Wed, 19 Dec 2018 21:01:41 +0100
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M zsh/.config/zsh/.zshenv → zsh/.config/zsh/.zshenv
@@ -44,7 +44,7 @@ if [[ $os != "darwin" ]] then unset SSH_AGENT_PID - if [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]] + if [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ && -n $commands[gpgconf] ]] then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi