Utilizing a different gpg binary with pass

Nicklaus McClendon nicklaus at kulinacs.com
Fri Jan 6 23:45:01 CET 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Upon further inspection, it seems the following patch would suit what
I am looking to do. It keeps the current mechanism used to set GPG,
and overrides it only if the variables PASSWORD_STORE_GPG_PROGRAM is set
.

- From eaba6441cfcbc4acd2fceecc3614f90ed8d440f5 Mon Sep 17 00:00:00 2001
From: Nicklaus McClendon <nicklaus at kulinacs.com>
Date: Fri, 6 Jan 2017 17:32:49 -0500
Subject: [PATCH] Added PASSWORD_STORE_GPG_PROGRAM

- ---
 src/password-store.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/password-store.sh b/src/password-store.sh
index 081057a..93cd753 100755
- --- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -12,6 +12,7 @@ export GPG_TTY="${GPG_TTY:-$(tty 2>/dev/null)}"
 which gpg2 &>/dev/null && GPG="gpg2"
 [[ -n $GPG_AGENT_INFO || $GPG == "gpg2" ]] && GPG_OPTS+=( "--batch"
"--use-agent" )

+GPG="${PASSWORD_STORE_GPG_PROGRAM:-$GPG}"
 PREFIX="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
 EXTENSIONS="${PASSWORD_STORE_EXTENSIONS_DIR:-$PREFIX/.extensions}"
 X_SELECTION="${PASSWORD_STORE_X_SELECTION:-clipboard}"
- --
2.11.0

- -- 
kulinacs <nicklaus at kulinacs.com>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEPL+ie5e8l/3OecVUuXLc0JPgMlYFAlhwHeMACgkQuXLc0JPg
MlZXoxAAxA+4vx3rtMHqQ6feai/Ev8d1UnsVp4i75Uv/TtiyvHFEAB1TlBOwhsaK
rw3ViDyNwSsYmM35KZxWyzUWPHfp/cZfItj55kbMvnHVJctc14/zuMwXvlqrbszJ
2eUncSbSLo4yScQWq8pcFvj2smp2dLZI/WReCKgow0f+HCjsrkuTFf1leFe35gSj
gjV6O/7uBPyYfPWx9H7YbbYiL8A6otD7vjweBPOmcSrooU8P8fhF2xFDHh9IhuZS
riSrwfWz0O/Ru85HyasRffC1qVIVS35QumbHbmrEVRbOSZp6sZS8IA7vxFaY82LW
3nd3KOH00p0GExtadqArheMzjRVOHEZbxYEAvYoEN/MSdFiXmz9UhhabncB2eaIS
6h46N+yuca19YNdL4tcs2M6VqDmYHKDRiHyKaQrYqsuZBXf147Zv2LT7ZaMA4yt3
T70Ytoyq8H1hBIiaV1mRR5gHMwN35o9hlr0TdJovyc1RAAB+llweFllPf0/w6snA
E5CBjrTnU8mvJ/c4n/2W0a2rTvsZp1GcwRKtvkeu8QXd+lckpJDANuWWsNKALJuM
qso9IJmw8nQvATLHLesSwdE7oDZI/+mg7iCiqSOseX6hkajn8rdmZN515vgqRw+4
zJvVBaT9YPhJZEAQOs04JV9G79IDfVB5IYU0Xlr3xH5pN6ClmZM=
=ORgW
-----END PGP SIGNATURE-----


More information about the Password-Store mailing list