From: Samir Benmendil Date: Wed, 10 Apr 2024 17:02:23 +0000 (+0100) Subject: zsh: set PINENTRY_USER_DATA in zshenv X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/48495f4be3c50e89527773b51c907de04c68af59 zsh: set PINENTRY_USER_DATA in zshenv It should affect all shells, not just interractive ones. --- 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"}