summary refs log tree commit diff stats
path: root/zsh/.config
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.config')
-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 dc247b5..b346c75 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