From f02a5b4f2045261f2cdc58070e9d03f1c4bb765f Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Fri, 31 Mar 2023 16:07:37 +0200 Subject: [PATCH] Fix gpg.zsh again --- zsh/.config/zsh/gpg.zsh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/zsh/.config/zsh/gpg.zsh b/zsh/.config/zsh/gpg.zsh index 74423e9..5853ce9 100644 --- a/zsh/.config/zsh/gpg.zsh +++ b/zsh/.config/zsh/gpg.zsh @@ -1,10 +1,5 @@ -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 +if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then + export GPG_TTY="$TTY" + gpgconf --launch gpg-agent + gpg-connect-agent updatestartuptty /bye &> /dev/null fi