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