dotfiles/zshrc: add comment about GPG_TTY

This is only needed for pinentry-curses.
This commit is contained in:
Alan Orth 2022-08-12 08:47:33 -07:00
parent 4d6353ed2a
commit 50bb7df89e
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -97,7 +97,7 @@ genpass() {
</dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 15 ; echo
}
# set GPG TTY
# set GPG TTY for pinentry-curses
export GPG_TTY=$(tty)
# Refresh gpg-agent tty in case user switches into an X Session