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