if (( ! $+commands[gpg] )); then return 1 fi # Inform gpg-agent of the current TTY for user prompts. export GPG_TTY="$(tty)"