summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--zsh/.config/zsh/.zshenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv
index dc247b5a..b346c753 100644
--- a/zsh/.config/zsh/.zshenv
+++ b/zsh/.config/zsh/.zshenv
@@ -44,7 +44,7 @@ then
   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