summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 82e3509..4c733ca 100644
--- a/bashrc
+++ b/bashrc
@@ -2,6 +2,10 @@
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
+# as advised by https://manpages.debian.org/buster/gpg-agent/gpg-agent.1.en.html
+GPG_TTY=$(tty)
+export GPG_TTY
+
# If not running interactively, don't do anything
case $- in
*i*) ;;