From 472136ff4daaef2b7535b18cef4d8d56511cb0a8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 20 Jul 2014 08:28:58 +0100 Subject: zsh: Check SSH_AUTH_SOCK more precisely --- tag-zsh/config/zsh/zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tag-zsh/config/zsh/zshenv') 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) -- cgit 1.4.1