diff options
-rw-r--r-- | gnupg/.config/zsh/.zshrc.d/20-gnupg.zsh | 3 | ||||
-rw-r--r-- | zsh/.config/zsh/.zshrc | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gnupg/.config/zsh/.zshrc.d/20-gnupg.zsh b/gnupg/.config/zsh/.zshrc.d/20-gnupg.zsh index 23ee6f9..f9c4fdc 100644 --- a/gnupg/.config/zsh/.zshrc.d/20-gnupg.zsh +++ b/gnupg/.config/zsh/.zshrc.d/20-gnupg.zsh @@ -1,4 +1,7 @@ #!/bin/zsh # vim:ft=sh +GPG_TTY=$(tty) +export GPG_TTY + alias unlock='echo "" | gpg --clearsign 1>/dev/null && ssh localhost -- : 1>/dev/null' diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 3967930..1dec322 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -7,7 +7,6 @@ export DISABLE_AUTO_TITLE="true" export HISTFILE="$XDG_STATE_HOME"/zsh/history export HISTSIZE=10000 export SAVEHIST=10000 -export GPG_TTY="$TTY" setopt no_beep setopt menu_complete |