aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-10-16 17:44:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-10-16 17:44:20 +1300
commit2736d11dd320b64c9cdd77bcaecd15756b73d89d (patch)
tree7c29920694b55102dfdf01debc5a0c022794156c /bash
parentAdd completion for GnuPG (diff)
downloaddotfiles-2736d11dd320b64c9cdd77bcaecd15756b73d89d.tar.gz
dotfiles-2736d11dd320b64c9cdd77bcaecd15756b73d89d.zip
Move TTY/GPG_TTY exports into profile
Diffstat (limited to '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
+