From f2c67c19aadfcf1dffec9b27c76869be50dc5edb Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 21 Mar 2020 23:24:34 +0000 Subject: [PATCH] zsh: `tty -s` prints nothing Remove redirection of stdout/stderr as they're pointless --- .config/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 5bc3292..07e511e 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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