From: Samir Benmendil Date: Wed, 10 Apr 2024 16:58:17 +0000 (+0100) Subject: gpg: use curses pinentry when no DISPLAY is set X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/00f62560dd33ea4bd4dc6b2000616f3f761ce5b5 gpg: use curses pinentry when no DISPLAY is set This allows to use qt pinentry over ssh when X forwarding is enabled. --- diff --git a/zsh/lib/gpg.zsh b/zsh/lib/gpg.zsh index a9f81a2..b127416 100644 --- a/zsh/lib/gpg.zsh +++ b/zsh/lib/gpg.zsh @@ -4,6 +4,6 @@ fi # Inform gpg-agent of the current TTY for user prompts. export GPG_TTY="$(tty)" -if [[ -n "$SSH_CONNECTION" ]]; then +if [[ -z "$DISPLAY" ]]; then export PINENTRY_USER_DATA="curses" fi