about summary refs log tree commit diff
path: root/.config/zsh/.zshrc
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-11-20 11:10:02 -0600
committerStarfall <us@starfall.systems>2022-11-20 11:10:02 -0600
commite89727e8d24fb498057dec0599fcb96aaeaa4d49 (patch)
tree1af603013d632041deeeb0d2178a3150cde909bf /.config/zsh/.zshrc
parentf091327779db6d590f577d1b722fcde1680a2c54 (diff)
zsh: forgot to ditch the output of command -v startx
Diffstat (limited to '.config/zsh/.zshrc')
-rw-r--r--.config/zsh/.zshrc2
1 files changed, 1 insertions, 1 deletions
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