dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit a3cb4b4e227174928918beee356e3fb4591d19cb
parent 76e2644f0f719adcb50de203fb95baaca128b27e
Author: hhvn <dev@haydenvh.com>
Date:   Sat,  6 Mar 2021 02:28:26 +0000

.scripts/bin/passgpg[NEW] .scripts/bin/passgpg2[NEW]: gpg wrappers that automatically supply passphrase

Diffstat:
A.scripts/bin/passgpg | 7+++++++
A.scripts/bin/passgpg2 | 9+++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/.scripts/bin/passgpg b/.scripts/bin/passgpg @@ -0,0 +1,7 @@ +#!/bin/sh + +while [ $# != 0 ] +do + printf '%s\0' "$1" + shift +done | xargs -0 gpg --armour --passphrase "$(dpass gpg3key)" diff --git a/.scripts/bin/passgpg2 b/.scripts/bin/passgpg2 @@ -0,0 +1,9 @@ +#!/bin/sh +# gpg2 is so stupid, use gpg1 if you have the chance +# why do I need --batch and --pinentry-mode loopback just so --passphrase works? wtf? + +while [ $# != 0 ] +do + printf '%s\0' "$1" + shift +done | xargs -0 gpg2 --armour --batch --pinentry-mode loopback --passphrase "$(dpass gpg3key)"