improve syntax of previous commit

This commit is contained in:
Nils Reuße 2017-01-23 18:23:44 +01:00
parent de06162e8f
commit 8b3a3cbc26
1 changed files with 1 additions and 2 deletions

View File

@ -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