aboutsummaryrefslogtreecommitdiff
path: root/pdksh/pdkshrc.d/keychain.pdksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-10 13:31:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-10 13:31:03 +1200
commit835a273f0a708b5ef8c59e299b034c78b045d936 (patch)
tree95ca4e81eeb9571a301fa91c5af07940710f6739 /pdksh/pdkshrc.d/keychain.pdksh
parentMerge branch 'master' into openbsd (diff)
downloaddotfiles-835a273f0a708b5ef8c59e299b034c78b045d936.tar.gz
dotfiles-835a273f0a708b5ef8c59e299b034c78b045d936.zip
Port easy bashrc.d scripts to pdkshrc.d
Have left out anything that requires non-trivial fixes, mostly due to variable scope or missing features.
Diffstat (limited to 'pdksh/pdkshrc.d/keychain.pdksh')
-rw-r--r--pdksh/pdkshrc.d/keychain.pdksh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdksh/pdkshrc.d/keychain.pdksh b/pdksh/pdkshrc.d/keychain.pdksh
new file mode 100644
index 00000000..40fe5d71
--- /dev/null
+++ b/pdksh/pdkshrc.d/keychain.pdksh
@@ -0,0 +1,4 @@
+# If GPG_TTY is set, update it
+if [[ -n $GPG_TTY ]] ; then
+ GPG_TTY=$(tty)
+fi