Files
trezor-agent/scripts/gpg-shell
2016-10-22 22:34:55 +03:00

17 lines
270 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 -v agent &
AGENT_PID=$!
sleep 1
echo "Starting GPG-enabled shell..."
${SHELL}
echo "Stopping GPG-enabled shell..."
kill ${AGENT_PID}