refactor(zsh/gpg): ensure GPG_TTY variable is set
This commit is contained in:
parent
883c539513
commit
4ceed1e60a
1 changed files with 13 additions and 0 deletions
13
zsh/.config/oh-my-zsh/custom/gpg.zsh
Normal file
13
zsh/.config/oh-my-zsh/custom/gpg.zsh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
|
Loading…
Reference in a new issue