summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2018-12-19 21:01:41 +0100
committerAlan Pearce2018-12-19 21:01:41 +0100
commit38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665 (patch)
treed49bfd972f847c06994735467e035bf9d91c8561 /zsh
parent0adba04d6f6c57246b6262d01e0af90e289dedf3 (diff)
downloaddotfiles-38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665.tar.lz
dotfiles-38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665.tar.zst
dotfiles-38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665.zip
zsh: Fix SSH_AUTH_SOCK setting without gpgconf
Diffstat (limited to 'zsh')
-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