]> arthur.barton.de Git - ax-zsh.git/commit
gnupg: Don't call tty(1), use the $TTY variable
authorAlexander Barton <alex@barton.de>
Fri, 16 Feb 2024 09:41:14 +0000 (10:41 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 16 Feb 2024 09:41:14 +0000 (10:41 +0100)
commitda9a3fc6b076a9508edd7765c1c9d26f0b39438b
tree0c8136007831b0c1e8edee469b3231bb897c274c
parent00db89d00d4b2738f39dc9f87ba0d17d3b31eb59
gnupg: Don't call tty(1), use the $TTY variable

This fixes setting GPG_TTY when stdin is not a real terminal, for
example when using Powerlevel10k "instant prompt".

See <https://unix.stackexchange.com/questions/608842/zshrc-export-gpg-tty-tty-says-not-a-tty>.
plugins/gnupg/gnupg.zshrc