1 # color-ls initialization
5 set COLORS=/etc/DIR_COLORS
7 if ( -e "/etc/DIR_COLORS.$TERM" ) set COLORS="/etc/DIR_COLORS.$TERM"
9 if ( -f ~/.dircolors ) set COLORS=~/.dircolors
11 if ( -f ~/.dircolors."$TERM" ) set COLORS=~/.dircolors."$TERM"
13 if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors
15 if ( -f ~/.dir_colors."$TERM" ) set COLORS=~/.dir_colors."$TERM"
18 if ( ! -e "$COLORS" ) exit
20 eval `dircolors -c $COLORS`
22 if ( "$LS_COLORS" == '' ) then
26 set color_none=`sed -n '/^COLOR.*none/Ip' < $COLORS`
27 if ( "$color_none" == '' ) then
28 alias ll 'ls -l --color=tty'
29 alias l. 'ls -d .* --color=tty'
30 alias ls 'ls --color=tty'