dotfiles/zsh/.config/zsh/gpg.zsh

8 lines
240 B
Bash

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