summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
authorAlan Pearce2014-07-19 19:51:42 +0100
committerAlan Pearce2014-07-19 19:51:42 +0100
commitb07c260e62bf809b6b60c12c83515335c0da0c5e (patch)
treebffc80bb9a7ab4b67a640c146c64896d6c8a6eec /tag-zsh/config
parent40133c84069510bc09ff2b460d0bf0f3da36097a (diff)
downloaddotfiles-b07c260e62bf809b6b60c12c83515335c0da0c5e.tar.lz
dotfiles-b07c260e62bf809b6b60c12c83515335c0da0c5e.tar.zst
dotfiles-b07c260e62bf809b6b60c12c83515335c0da0c5e.zip
zsh: Don't run envoy when SSH_AUTH_SOCK is defined
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 24dca14..2547665 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 && -s $commands[envoy] ]]
+if [[ $os == gnu && -z $SSH_AUTH_SOCK && -s $commands[envoy] ]]
 then
 	envoy -t gpg-agent
 	eval $(envoy -p)