1
0
Fork 0
mirror of synced 2024-11-16 04:55:35 -05:00

fix warning when logging in on tty (variable not set)

This commit is contained in:
Nils Reusse 2017-01-17 11:31:53 +01:00
parent 9f4c21cee8
commit de06162e8f

View file

@ -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