2019-10-31 23:18:00 +00:00
|
|
|
|
# From gpg-agent(1):
|
|
|
|
|
#
|
|
|
|
|
# You should always add the following lines to your .bashrc or whatever
|
|
|
|
|
# initialization file is used for all shell invocations:
|
|
|
|
|
#
|
|
|
|
|
# GPG_TTY=$(tty)
|
|
|
|
|
# export GPG_TTY
|
|
|
|
|
#
|
|
|
|
|
# It is important that this environment variable always reflects the out‐
|
|
|
|
|
# put of the tty command.
|
|
|
|
|
|
2021-07-08 14:33:48 +00:00
|
|
|
|
if command -v gpg-agent &> /dev/null; then
|
|
|
|
|
GPG_TTY=$(tty)
|
|
|
|
|
export GPG_TTY
|
|
|
|
|
fi
|
2019-10-31 23:18:00 +00:00
|
|
|
|
|
|
|
|
|
# vim: ft=zsh expandtab tabstop=2 shiftwidth=2
|