diff --git a/.config/gnupg/gpg.loopback b/.config/gnupg/gpg.loopback new file mode 100755 index 0000000..20325f6 --- /dev/null +++ b/.config/gnupg/gpg.loopback @@ -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 "$@" diff --git a/.local/bin/gpg.loopback b/.local/bin/gpg.loopback deleted file mode 100755 index 20325f6..0000000 --- a/.local/bin/gpg.loopback +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 "$@" diff --git a/.local/bin/gpg.loopback b/.local/bin/gpg.loopback new file mode 120000 index 0000000..f1732ad --- /dev/null +++ b/.local/bin/gpg.loopback @@ -0,0 +1 @@ +../../.config/gnupg/gpg.loopback \ No newline at end of file