1 2 3 4 5 6
# If TTY/GPG_TTY are set, update them if [[ $TTY || $GPG_TTY ]]; then TTY=$(tty) GPG_TTY=$TTY fi