Fix gpg.zsh
This commit is contained in:
parent
78deede3be
commit
ddb4be62f2
|
@ -1,4 +1,5 @@
|
||||||
if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
|
if [[ $HOSTNAME != "toolbox" ]]; then
|
||||||
|
if [[ -z $SSH_CONNECTION ]]; then
|
||||||
export GPG_TTY="$TTY"
|
export GPG_TTY="$TTY"
|
||||||
gpgconf --launch gpg-agent
|
gpgconf --launch gpg-agent
|
||||||
gpg-connect-agent updatestartuptty /bye &> /dev/null
|
gpg-connect-agent updatestartuptty /bye &> /dev/null
|
||||||
|
@ -6,3 +7,4 @@ else
|
||||||
gpgconf --kill all
|
gpgconf --kill all
|
||||||
gpg-connect-agent reloadagent /bye &> /dev/null
|
gpg-connect-agent reloadagent /bye &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue