fix warning when logging in on tty (variable not set)
This commit is contained in:
parent
9f4c21cee8
commit
de06162e8f
|
@ -6,7 +6,8 @@
|
||||||
# Colours
|
# Colours
|
||||||
#
|
#
|
||||||
|
|
||||||
if (( ${terminfo[colors]} >= 8 )); then
|
COLORS=${terminfo[colors]}
|
||||||
|
if (( ${COLORS:=0} >= 8 )); then
|
||||||
# ls Colors
|
# ls Colors
|
||||||
if (( ${+commands[dircolors]} )); then
|
if (( ${+commands[dircolors]} )); then
|
||||||
# GNU
|
# GNU
|
||||||
|
|
Loading…
Reference in a new issue