X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.profile.d%2Fkeychain.sh;h=c5ceb78f29c775263352e8c1fb955db75df96fee;hb=f7555918c8180c281c91caec2cb5f7990e1719bb;hp=7f0ef652a39f2d4314f8de4066ad3137ea9bb267;hpb=5176a509beccabdbe30cbd3420580dea441b12bb;p=home.git diff --git a/.profile.d/keychain.sh b/.profile.d/keychain.sh index 7f0ef65..c5ceb78 100644 --- a/.profile.d/keychain.sh +++ b/.profile.d/keychain.sh @@ -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)"