From 65ae393c80e048739916892a0bde636f9bc37abb Mon Sep 17 00:00:00 2001 From: Gwen Lofman Date: Mon, 25 Jul 2022 15:40:38 -0400 Subject: [PATCH] Set GPG TTY As recommended by gpg-agent manual --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index d12d501..c006fce 100644 --- a/.bashrc +++ b/.bashrc @@ -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