1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

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

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