X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a65d072f1983b3faf1377bbcf34afa96335d6124..00f62560dd33ea4bd4dc6b2000616f3f761ce5b5:/zsh/lib/gpg.zsh diff --git a/zsh/lib/gpg.zsh b/zsh/lib/gpg.zsh index 7b977d4..b127416 100644 --- a/zsh/lib/gpg.zsh +++ b/zsh/lib/gpg.zsh @@ -4,3 +4,6 @@ fi # Inform gpg-agent of the current TTY for user prompts. export GPG_TTY="$(tty)" +if [[ -z "$DISPLAY" ]]; then + export PINENTRY_USER_DATA="curses" +fi