diff --git a/modules/gpg/init.zsh b/modules/gpg/init.zsh index 7976fd7d..4498b7b0 100644 --- a/modules/gpg/init.zsh +++ b/modules/gpg/init.zsh @@ -26,7 +26,7 @@ if [[ -z "$GPG_AGENT_INFO" && ! -S "${GNUPGHOME:-$HOME/.gnupg}/S.gpg-agent" ]]; fi # Inform gpg-agent of the current TTY for user prompts. -export GPG_TTY="$(tty)" +export GPG_TTY=$TTY # Integrate with the SSH module. if grep '^enable-ssh-support' "$_gpg_agent_conf" &> /dev/null; then