Reload agent if SSH or toolbox

This commit is contained in:
Sam A. 2023-03-23 18:04:15 +01:00
parent 5cf5cb936a
commit 12b2f402bd
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 2 additions and 0 deletions

View File

@ -2,4 +2,6 @@ if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
export GPG_TTY="$TTY"
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye &> /dev/null
else
gpg-connect-agent reloadagent /bye &> /dev/null
fi