aboutsummaryrefslogtreecommitdiff
path: root/keychain/shrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-18 16:30:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-18 16:30:14 +1200
commit4722948a5657d3a2596d408d551ab03c5085d0ec (patch)
tree326203d187489bdeaa78fc60f58ec65638a20c64 /keychain/shrc.d
parentBreak plenv stuff into its own target (diff)
downloaddotfiles-4722948a5657d3a2596d408d551ab03c5085d0ec.tar.gz
dotfiles-4722948a5657d3a2596d408d551ab03c5085d0ec.zip
More segmentation/tidying
Diffstat (limited to 'keychain/shrc.d')
-rw-r--r--keychain/shrc.d/keychain.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/keychain/shrc.d/keychain.sh b/keychain/shrc.d/keychain.sh
new file mode 100644
index 00000000..9a732384
--- /dev/null
+++ b/keychain/shrc.d/keychain.sh
@@ -0,0 +1,4 @@
+# If GPG_AGENT_INFO is set, update GPG_TTY for clean use of pinentry(1) etc
+[ -n "$GPG_AGENT_INFO" ] || return
+GPG_TTY=$(command -p tty) || return
+export GPG_TTY