From e89727e8d24fb498057dec0599fcb96aaeaa4d49 Mon Sep 17 00:00:00 2001 From: Starfall Date: Sun, 20 Nov 2022 11:10:02 -0600 Subject: zsh: forgot to ditch the output of command -v startx --- .config/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 23adb40..f1255c8 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -37,6 +37,6 @@ unset conf tty -s && fortune $HOME/fortunes 2>/dev/null ||: # startx if not already running an x server (e.g. via display manager) and only on tty1 -if (command -v startx) && [ -z "${DISPLAY}" ] && [ "$(tty)" = "/dev/tty1" ]; then +if (command -v startx &>/dev/null) && [ -z "${DISPLAY}" ] && [ "$(tty)" = "/dev/tty1" ]; then exec startx fi -- cgit