gpg: use gpg.conf to automatically spawn trezor-gpg-agent

This commit is contained in:
Roman Zeyde
2016-10-24 17:30:35 +03:00
parent 921e2954c1
commit 683d24f4eb
4 changed files with 31 additions and 46 deletions

View File

@@ -2,15 +2,6 @@
set -eu
export GNUPGHOME=~/.gnupg/trezor
gpg2 --list-public-keys --with-keygrip
gpg2 --list-public-keys
killall -q trezor-gpg || true
trezor-gpg -v agent &
AGENT_PID=$!
sleep 1
echo "Starting GPG-enabled shell..."
${SHELL} || true
echo "Stopping GPG-enabled shell..."
kill ${AGENT_PID}
${SHELL}