From 8b3a3cbc26e0d8697c1218f0304598a966835927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Reu=C3=9Fe?= Date: Mon, 23 Jan 2017 18:23:44 +0100 Subject: [PATCH] improve syntax of previous commit --- modules/utility/init.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 17e6b16..f8e2cfb 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -6,8 +6,7 @@ # Colours # -COLORS=${terminfo[colors]} -if (( ${COLORS:=0} >= 8 )); then +if [[ ! -z ${terminfo[colors]} ]] && (( ${terminfo[colors]} >= 8 )); then # ls Colors if (( ${+commands[dircolors]} )); then # GNU