fix warning when logging in on tty (variable not set)
This commit is contained in:
parent
9f4c21cee8
commit
de06162e8f
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue