Files
trezor-agent/scripts/gpg-shell
2016-10-23 21:37:09 +03:00

17 lines
278 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} || true
echo "Stopping GPG-enabled shell..."
kill ${AGENT_PID}