From 6a87b146110d0b757d5ac96c1580219ef7433276 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 11 Mar 2025 11:40:54 +0100 Subject: [PATCH] gpg: Move gpg.loopback back to .config and symlink It was moved back in 020b39887e0a ("gpg,git: Move gpg.loopback into PATH"), because git had problems with the "dynamic" path of HOME. I like to have everything at one place though (And I searched for this script in the wrong place, just now). --- .config/gnupg/gpg.loopback | 12 ++++++++++++ .local/bin/gpg.loopback | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100755 .config/gnupg/gpg.loopback mode change 100755 => 120000 .local/bin/gpg.loopback 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