diff --git a/.bashrc b/.bashrc index 3be8590..81e91fe 100644 --- a/.bashrc +++ b/.bashrc @@ -146,5 +146,7 @@ unset rc if [ -f "$HOME/.cargo/env" ]; then . "$HOME/.cargo/env" fi -GPG_TTY=$(tty) -export GPG_TTY +if [ -t 0 ]; then + GPG_TTY=$(tty) + export GPG_TTY +fi;