Fix gpg.zsh again

This commit is contained in:
Sam A. 2023-03-31 16:07:37 +02:00
parent ddb4be62f2
commit f02a5b4f20
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -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