zsh: tty -s prints nothing

Remove redirection of stdout/stderr as they're pointless
This commit is contained in:
2020-03-21 23:24:34 +00:00
parent 77ef7ef239
commit 760a81a76b
+1 -1
View File
@@ -13,7 +13,7 @@ SAVEHIST=999999
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
# Only set tty if running interactively
if exists tty && tty -s 1>/dev/null 2>/dev/null; then
if exists tty && tty -s; then
# Resolve at shell runtime
export GPG_TTY="$(tty)"
fi