From: sev Date: Sun, 5 Jan 2025 08:04:45 +0000 (-0600) Subject: zsh: fix PINENTRY_USER_DATA X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/f9440ea7b4735ff108ca9e36dc9460a9d3bf7843 zsh: fix PINENTRY_USER_DATA --- diff --git a/etc/zsh/.zprofile b/etc/zsh/.zprofile index 3ade322..30610aa 100644 --- a/etc/zsh/.zprofile +++ b/etc/zsh/.zprofile @@ -147,7 +147,7 @@ if [[ -v commands[gpg-connect-agent] && export GPG_TTY=$(tty) if [[ ( -v DISPLAY || -v WAYLAND_DISPLAY ) && ${PINENTRY_USER_DATA/USE_TTY=0} == $PINENTRY_USER_DATA ]] - export PINENTRY_USER_DATA=${${:-${PINENTRY_USER_DATA//USE_TTY=[01] #/} USE_TTY=0}/# ##/} + export PINENTRY_USER_DATA=${(*)${:-${(*)PINENTRY_USER_DATA//USE_TTY=[01] #} USE_TTY=0}/# ##} sed -Ei 's^([[:space:]]*pinentry-program[[:space:]]).*/\.local/bin/pinentry$\1'$HOME'/.local/bin/pinentry' \ ${GNUPGHOME:-~/.gnupg}/gpg-agent.conf 2>/dev/null gpg-connect-agent RELOADAGENT UPDATESTARTUPTTY /bye >/dev/null 2>&1