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