diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index af524c9..f8e2cfb 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -6,7 +6,7 @@ # Colours # -if (( ${terminfo[colors]} >= 8 )); then +if [[ ! -z ${terminfo[colors]} ]] && (( ${terminfo[colors]} >= 8 )); then # ls Colors if (( ${+commands[dircolors]} )); then # GNU