Fixed syntax error in colors.csh script

This commit is contained in:
Ondrej Vasik 2008-02-08 16:27:31 +00:00
parent 55707b64ee
commit 9bfa74fd5d

View File

@ -16,7 +16,7 @@ if ($?TERM) then
endif
endif
if ( -e "/etc/DIR_COLORS.256color" ) then
if ( "`tput colors 2>/dev/null`" == "256" ) then
if ( "`tput colors`" == "256" ) then
set COLORS=/etc/DIR_COLORS.256color
endif
endif
@ -29,7 +29,7 @@ endif
if ( ! -e "$COLORS" ) exit
eval `dircolors -c $COLORS 2>/dev/null`
eval `dircolors -c $COLORS`
if ( "$LS_COLORS" == '' ) exit
set color_none=`sed -n '/^COLOR.*none/Ip' < $COLORS`