diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-02 16:10:11 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-02 16:10:11 +0200 |
| commit | 7e57408f8ae303bd32c586b33011e29e237dd60a (patch) | |
| tree | 68b4ff4656c8eb7c25ef6138ef5e7800c792b058 /home/dot_local | |
| parent | 84dd5d0d25b6ff22497c27407099a4d4b1293587 (diff) | |
add more options
Diffstat (limited to 'home/dot_local')
| -rw-r--r-- | home/dot_local/share/bin/home/dot_local/share/bin/executable_gpg-git.tmpl (renamed from home/dot_local/share/bin/executable_gpg-git) | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/home/dot_local/share/bin/executable_gpg-git b/home/dot_local/share/bin/home/dot_local/share/bin/executable_gpg-git.tmpl index df0feca..8d9e600 100644 --- a/home/dot_local/share/bin/executable_gpg-git +++ b/home/dot_local/share/bin/home/dot_local/share/bin/executable_gpg-git.tmpl @@ -1,4 +1,6 @@ #!/bin/sh -GPG_KEY_ID="$GPG_ID_GIT" # see ~/.profile +{{- 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 }} |