aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/keychain.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/keychain.bash')
-rw-r--r--bash/bashrc.d/keychain.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc.d/keychain.bash b/bash/bashrc.d/keychain.bash
new file mode 100644
index 00000000..2cb1093a
--- /dev/null
+++ b/bash/bashrc.d/keychain.bash
@@ -0,0 +1,6 @@
+# If TTY/GPG_TTY are set, update them
+if [[ -n $TTY || -n $GPG_TTY ]]; then
+ TTY=$(tty)
+ GPG_TTY=$TTY
+fi
+