dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 2240ff5ac739912b1c352ed97217b886ab0fb422
parent 33ca99a5edd649f80170c8576a3eadd29b6d39f7
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 24 Nov 2023 21:11:02 +0000

pinentry wrapper

Diffstat:
Mgpg/.gnupg/gpg-agent.conf | 2+-
Agpg/bin/pinentry-select | 10++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/gpg/.gnupg/gpg-agent.conf b/gpg/.gnupg/gpg-agent.conf @@ -2,5 +2,5 @@ default-cache-ttl 84000 max-cache-ttl 84000 default-cache-ttl-ssh 28800 max-cache-ttl-ssh 28800 -pinentry-program /usr/bin/pinentry-tty +pinentry-program $HOME/bin/pinentry-select quiet diff --git a/gpg/bin/pinentry-select b/gpg/bin/pinentry-select @@ -0,0 +1,10 @@ +#!/bin/sh +PE="" +BIN="/usr/bin" + +for p in pinentry-tty pinentry-curses pinentry ; do + command -v ${BIN}/${p} >/dev/null && PE="${BIN}/${p}" + break +done + +exec ${PE} "$@"