This seems to be better fix ;) for noninteractive mode
This commit is contained in:
parent
6972fb24fa
commit
9a7f541e9b
@ -14,12 +14,12 @@ if ($?TERM) then
|
|||||||
if ( -e "/etc/DIR_COLORS.$TERM" ) then
|
if ( -e "/etc/DIR_COLORS.$TERM" ) then
|
||||||
set COLORS="/etc/DIR_COLORS.$TERM"
|
set COLORS="/etc/DIR_COLORS.$TERM"
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
if ( -e "/etc/DIR_COLORS.256color" ) then
|
if ( -e "/etc/DIR_COLORS.256color" ) then
|
||||||
if ( "`tty -s` && tput colors" == "256" ) then
|
if ( "`tput colors`" == "256" ) then
|
||||||
set COLORS=/etc/DIR_COLORS.256color
|
set COLORS=/etc/DIR_COLORS.256color
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
if ( -f ~/.dircolors ) set COLORS=~/.dircolors
|
if ( -f ~/.dircolors ) set COLORS=~/.dircolors
|
||||||
if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors
|
if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors
|
||||||
if ($?TERM) then
|
if ($?TERM) then
|
||||||
|
Loading…
Reference in New Issue
Block a user