diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-16 17:44:20 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-16 17:44:20 +1300 |
commit | 2736d11dd320b64c9cdd77bcaecd15756b73d89d (patch) | |
tree | 7c29920694b55102dfdf01debc5a0c022794156c /bash | |
parent | Add completion for GnuPG (diff) | |
download | dotfiles-2736d11dd320b64c9cdd77bcaecd15756b73d89d.tar.gz dotfiles-2736d11dd320b64c9cdd77bcaecd15756b73d89d.zip |
Move TTY/GPG_TTY exports into profile
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/keychain.bash | 6 |
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 + |