From 4ceed1e60a1910eca57f3b1ba5535b34c9fc899c Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Sat, 27 Apr 2019 13:42:51 +1200 Subject: [PATCH] refactor(zsh/gpg): ensure GPG_TTY variable is set --- zsh/.config/oh-my-zsh/custom/gpg.zsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 zsh/.config/oh-my-zsh/custom/gpg.zsh diff --git a/zsh/.config/oh-my-zsh/custom/gpg.zsh b/zsh/.config/oh-my-zsh/custom/gpg.zsh new file mode 100644 index 0000000..ba7b529 --- /dev/null +++ b/zsh/.config/oh-my-zsh/custom/gpg.zsh @@ -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) +