improve syntax of previous commit
This commit is contained in:
parent
de06162e8f
commit
8b3a3cbc26
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue