gpg,git: Move gpg.loopback into PATH

Move gpg.loopback into PATH as git's `gpg.program` does not handle paths
with `~` or other environment variables very well.
This commit is contained in:
2022-05-06 21:00:01 +02:00
parent a9debfe7cd
commit 020b39887e
2 changed files with 1 additions and 1 deletions

12
.local/bin/gpg.loopback Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Taken from:
# https://github.com/tpope/vim-fugitive/issues/1836#issuecomment-918677504
#
# > Put this in /usr/local/bin/gpg or anywhere else that outranks /usr/bin in
# > PATH. Alternatively, give this script a different name, and configure
# > gpg.program in Git to point at it.
[ -z "$FUGITIVE" ] || set -- --pinentry-mode loopback "$@"
exec /usr/bin/gpg "$@"