summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-20 08:28:58 +0100
committerAlan Pearce2014-07-20 08:28:58 +0100
commit472136ff4daaef2b7535b18cef4d8d56511cb0a8 (patch)
treed6456141d243df600288bb27588a419c9871ae0a
parentd937e36f99214675f4ba45a579db290f8e1ce525 (diff)
downloadnixfiles-472136ff4daaef2b7535b18cef4d8d56511cb0a8.tar.lz
nixfiles-472136ff4daaef2b7535b18cef4d8d56511cb0a8.tar.zst
nixfiles-472136ff4daaef2b7535b18cef4d8d56511cb0a8.zip
zsh: Check SSH_AUTH_SOCK more precisely
-rwxr-xr-xtag-zsh/config/zsh/zshenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag-zsh/config/zsh/zshenv b/tag-zsh/config/zsh/zshenv
index 25476653..3572571f 100755
--- a/tag-zsh/config/zsh/zshenv
+++ b/tag-zsh/config/zsh/zshenv
@@ -50,7 +50,7 @@ then
 	eval "$(direnv hook zsh)"
 fi
 
-if [[ $os == gnu && -z $SSH_AUTH_SOCK && -s $commands[envoy] ]]
+if [[ $os == gnu && ! -S $SSH_AUTH_SOCK && -s $commands[envoy] ]]
 then
 	envoy -t gpg-agent
 	eval $(envoy -p)