A workaround for people who prefer entering password in tty when possible (e.g. using pinentry-mode loopback
) but don't want to break vscode commit signing:
- Create a
~/.local/bin/my-pinentry.sh
:
#!/bin/sh
if [ "$PINENTRY_USER_DATA" = "tty" ]; then
exec /usr/bin/pinentry-tty "$@"
else
exec /usr/bin/pinentry "$@"
fi