summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--zsh/.config/zsh/.zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index b7a20b9..91d5e01 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -106,7 +106,7 @@ bindkey '\e ' hist-complete
 zstyle ':completion:*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}' 'r:|=*' 'l:|=* r:|=*'
 zstyle ':completion:*' completer _expand _complete _match
 
-if [[ -n $commands[gpg-connect-agent] ]]
+if [[ $os -ne "darwin" && -n $commands[gpg-connect-agent] ]]
 then
   # When using SSH support, use the current TTY for passphrase prompts
   gpg-connect-agent updatestartuptty /bye > /dev/null
@@ -117,7 +117,7 @@ then
   else
     echo "$(gpgconf --list-dirs agent-ssh-socket) doesn't exist. Is gpg-agent running ?"
   fi
-elif [[ -z $SSH_AUTH_SOCK && $commands[ssh-agent] ]]
+elif [[ -z "$SSH_AUTH_SOCK" && -n $commands[ssh-agent] ]]
 then
   eval $(ssh-agent)
 fi