Set GPG TTY

As recommended by gpg-agent manual
This commit is contained in:
Gwen 2022-07-25 15:40:38 -04:00
parent d3ea07495e
commit 65ae393c80
Signed by: ludens
GPG Key ID: 4DB217ABEC8E37B0
1 changed files with 4 additions and 0 deletions

View File

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