Reload agent if SSH or toolbox
This commit is contained in:
parent
5cf5cb936a
commit
12b2f402bd
|
@ -2,4 +2,6 @@ if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; 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
|
||||||
|
else
|
||||||
|
gpg-connect-agent reloadagent /bye &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue