]> git.sev.monster Git - dotfiles.git/commitdiff
zsh: fix PINENTRY_USER_DATA
authorsev <git@sev.monster>
Sun, 5 Jan 2025 08:04:45 +0000 (02:04 -0600)
committersev <git@sev.monster>
Sun, 5 Jan 2025 08:04:45 +0000 (02:04 -0600)
etc/zsh/.zprofile

index 3ade322a3f0c0bcf741074f9037747e08faf0fa7..30610aac24916f97b71ebed573a38341e5db80ea 100644 (file)
@@ -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\1f^([[:space:]]*pinentry-program[[:space:]]).*/\.local/bin/pinentry$\1f\1'$HOME'/.local/bin/pinentry\1f' \
               ${GNUPGHOME:-~/.gnupg}/gpg-agent.conf 2>/dev/null
             gpg-connect-agent RELOADAGENT UPDATESTARTUPTTY /bye >/dev/null 2>&1
This page took 0.046289 seconds and 4 git commands to generate.