diff --git a/zsh/.config/zsh/gpg.zsh b/zsh/.config/zsh/gpg.zsh index 712cccc..74423e9 100644 --- a/zsh/.config/zsh/gpg.zsh +++ b/zsh/.config/zsh/gpg.zsh @@ -1,8 +1,10 @@ -if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then - export GPG_TTY="$TTY" - gpgconf --launch gpg-agent - gpg-connect-agent updatestartuptty /bye &> /dev/null -else - gpgconf --kill all - gpg-connect-agent reloadagent /bye &> /dev/null +if [[ $HOSTNAME != "toolbox" ]]; then + if [[ -z $SSH_CONNECTION ]]; then + export GPG_TTY="$TTY" + gpgconf --launch gpg-agent + gpg-connect-agent updatestartuptty /bye &> /dev/null + else + gpgconf --kill all + gpg-connect-agent reloadagent /bye &> /dev/null + fi fi