As recommended by gpg-agent manual
@ -22,3 +22,7 @@ unset DIR
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
# As suggested by gpg-agent manual, ensure the tty always matches
GPG_TTY=$(tty)
export GPG_TTY