From 48495f4be3c50e89527773b51c907de04c68af59 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 10 Apr 2024 18:02:23 +0100 Subject: [PATCH] zsh: set PINENTRY_USER_DATA in zshenv It should affect all shells, not just interractive ones. --- zsh/lib/gpg.zsh | 3 --- zshenv | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/zsh/lib/gpg.zsh b/zsh/lib/gpg.zsh index b127416..7b977d4 100644 --- a/zsh/lib/gpg.zsh +++ b/zsh/lib/gpg.zsh @@ -4,6 +4,3 @@ 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 diff --git a/zshenv b/zshenv index debc700..f0ab633 100644 --- a/zshenv +++ b/zshenv @@ -11,6 +11,11 @@ export THEME=nord # gpg export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" +#TODO this should probably be set for all shells? +if [[ -z "$DISPLAY" ]]; then + export PINENTRY_USER_DATA="curses" +fi + # ssh export SSH_AUTH_SOCK=${SSH_AUTH_SOCK:-"$XDG_RUNTIME_DIR/ssh-agent.socket"} -- 2.48.1