all repos — nixfiles @ 38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665

System and user configuration, managed by nix and home-manager

zsh: Fix SSH_AUTH_SOCK setting without gpgconf
Alan Pearce alan@alanpearce.eu
Wed, 19 Dec 2018 21:01:41 +0100
commit

38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665

parent

0adba04d6f6c57246b6262d01e0af90e289dedf3

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M zsh/.config/zsh/.zshenvzsh/.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