5d66c4c
#! /bin/csh -f
0933009
# color-ls initialization
147167e
if ( $?USER_LS_COLORS ) then
147167e
  if ( "$USER_LS_COLORS" != "" ) then
147167e
     #when USER_LS_COLORS defined do not override user 
147167e
     #specified LS_COLORS and use them
6ee11ab
     goto finish
6ee11ab
  endif
5d66c4c
endif
5d66c4c
0933009
alias ll 'ls -l'
0933009
alias l. 'ls -d .*'
0933009
set COLORS=/etc/DIR_COLORS
0933009
if ($?TERM) then
6ee11ab
  if ( -e "/etc/DIR_COLORS.$TERM" ) then 
6ee11ab
     set COLORS="/etc/DIR_COLORS.$TERM"
6ee11ab
  endif
5d66c4c
endif
6ee11ab
if ( -e "/etc/DIR_COLORS.256color" ) then
af063ec
  if ( "`tput colors`" == "256" ) then
6ee11ab
     set COLORS=/etc/DIR_COLORS.256color
6ee11ab
  endif 
0933009
endif
6ee11ab
if ( -f ~/.dircolors ) set COLORS=~/.dircolors
6ee11ab
if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors
0933009
if ($?TERM) then
6ee11ab
  if ( -f ~/.dircolors."$TERM" ) set COLORS=~/.dircolors."$TERM"
6ee11ab
  if ( -f ~/.dir_colors."$TERM" ) set COLORS=~/.dir_colors."$TERM"
5d66c4c
endif
0933009
6ee11ab
if ( ! -e "$COLORS" ) exit
0933009
9bfa74f
eval `dircolors -c $COLORS`
0933009
6ee11ab
if ( "$LS_COLORS" == '' ) exit
0933009
set color_none=`sed -n '/^COLOR.*none/Ip' < $COLORS`
6ee11ab
if ( "$color_none" != '' ) then 
6ee11ab
   unset color_none
6ee11ab
   exit
0933009
endif
0933009
unset color_none
6ee11ab
6ee11ab
finish:
6feaf70
alias ll 'ls -l --color=auto'
6feaf70
alias l. 'ls -d .* --color=auto'
6feaf70
alias ls 'ls --color=auto'