#!/bin/bash set -eu export GNUPGHOME=~/.gnupg/trezor # Make sure that the device is unlocked before starting the shell trezor-gpg-unlock # Make sure TREZOR-based gpg-agent is running gpg-connect-agent --agent-program "$(which trezor-gpg-agent)"