]> git.wh0rd.org Git - home.git/commitdiff
profile.d: export GPG_TTY
authorMike Frysinger <vapier@gentoo.org>
Fri, 2 Oct 2015 13:19:45 +0000 (09:19 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 2 Oct 2015 13:19:45 +0000 (09:19 -0400)
.profile.d/keychain.sh

index 7f0ef652a39f2d4314f8de4066ad3137ea9bb267..c5ceb78f29c775263352e8c1fb955db75df96fee 100644 (file)
@@ -10,3 +10,7 @@ if type keychain >/dev/null 2>&1 ; then
                [ -e ~/.keychain/${HOSTNAME}-sh-gpg ] && . ~/.keychain/${HOSTNAME}-sh-gpg
        fi
 fi
+
+# The agent might try to spawn pinentry on the tty it started
+# on instead of the tty gpg is now running on.
+export GPG_TTY="$(tty)"