summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
authorAlan Pearce2014-07-20 08:28:58 +0100
committerAlan Pearce2014-07-20 08:28:58 +0100
commit472136ff4daaef2b7535b18cef4d8d56511cb0a8 (patch)
treed6456141d243df600288bb27588a419c9871ae0a /tag-zsh/config
parentd937e36f99214675f4ba45a579db290f8e1ce525 (diff)
downloaddotfiles-472136ff4daaef2b7535b18cef4d8d56511cb0a8.tar.lz
dotfiles-472136ff4daaef2b7535b18cef4d8d56511cb0a8.tar.zst
dotfiles-472136ff4daaef2b7535b18cef4d8d56511cb0a8.zip
zsh: Check SSH_AUTH_SOCK more precisely
Diffstat (limited to 'tag-zsh/config')
-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 2547665..3572571 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)