Files
amodem/scripts/gpg-shell
Roman Zeyde 75fe7b4e05 gpg: improve shell helper scripts
- explicit trust configuration
- less debug prints
2016-10-22 21:41:23 +03:00

17 lines
267 B
Bash
Executable File

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