From ad9cfdc586ee37b4c534d173697b4404d6f51324 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 2 Aug 2026 16:24:33 +0200 Subject: fix path --- home/dot_local/share/bin/executable_gpg-git.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 home/dot_local/share/bin/executable_gpg-git.tmpl (limited to 'home/dot_local/share/bin/executable_gpg-git.tmpl') diff --git a/home/dot_local/share/bin/executable_gpg-git.tmpl b/home/dot_local/share/bin/executable_gpg-git.tmpl new file mode 100644 index 0000000..8d9e600 --- /dev/null +++ b/home/dot_local/share/bin/executable_gpg-git.tmpl @@ -0,0 +1,6 @@ +#!/bin/sh +{{- with ( dig "git" "gpg_id" nil . ) }} +GPG_KEY_ID="{{ . }}" +GPG_KEY_PASSPHRASE="$(pass "gpg/$GPG_KEY_ID.asc" | head -n1)" +gpg --batch --no-tty --pinentry-mode loopback --passphrase "$GPG_KEY_PASSPHRASE" "$@" +{{- end }} -- cgit v1.2.3