#!/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