zsh: Fix SSH_AUTH_SOCK setting without gpgconf
1 file changed, 1 insertion(+), 1 deletion(-)
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