mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
zsh: tty -s
prints nothing
Remove redirection of stdout/stderr as they're pointless
This commit is contained in:
parent
8ceb3434a0
commit
f2c67c19aa
@ -13,7 +13,7 @@ SAVEHIST=999999
|
|||||||
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
|
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
|
||||||
|
|
||||||
# Only set tty if running interactively
|
# 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
|
# Resolve at shell runtime
|
||||||
export GPG_TTY="$(tty)"
|
export GPG_TTY="$(tty)"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user