trezor-agent/scripts/gpg-shell
2016-11-04 19:33:05 +02:00

17 lines
234 B
Bash
Executable File

#!/bin/bash
set -eu
export GNUPGHOME=~/.gnupg/trezor
# Make sure that the device is unlocked before starting the shell
trezor-gpg-unlock
COMMAND=$*
if [ -z "${COMMAND}" ]
then
gpg2 --list-public-keys
${SHELL}
else
${COMMAND}
fi