summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-06-12 19:10:34 +0100
committerMatthew Lemon <y@yulqen.org>2023-06-12 19:10:34 +0100
commit7668bb165fae3ef0a2f07e6cfff436e78e8ee05f (patch)
treed3669e2d433b3d14de60986e4d6d8c437ddc938c
parent36804a96cbfa1bc7ef91f6f5a8aa2df9d0db1941 (diff)
Adds GPG_TTY environment variable
-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*) ;;