diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index db1b269..216d1ae 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -17,7 +17,7 @@ SAVEHIST=999999 exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; } # Only set tty if running interactively -if exists tty && tty -s; then +if exists tty && tty -s 1>/dev/null 2>/dev/null; then # Resolve at shell runtime export GPG_TTY="$(tty)" fi