Subversion Repositories configs

Rev

Rev 4 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#! /bin/csh -f
2
# color-ls initialization
3
if ( $?USER_LS_COLORS ) then
4
  if ( "$USER_LS_COLORS" != "" ) then
5
     #when USER_LS_COLORS defined do not override user
6
     #specified LS_COLORS and use them
7
     goto finish
8
  endif
9
endif
10
 
11
alias ll 'ls -l'
12
alias l. 'ls -d .*'
13
set COLORS=/etc/DIR_COLORS
14
if ($?TERM) then
15
  if ( -e "/etc/DIR_COLORS.$TERM" ) then
16
     set COLORS="/etc/DIR_COLORS.$TERM"
17
  endif
18
  if ( -e "/etc/DIR_COLORS.256color" ) then
58 - 19
    if ( "`/usr/bin/tput colors`" == "256" ) then
4 - 20
	set COLORS=/etc/DIR_COLORS.256color
21
    endif
22
  endif
23
endif
24
if ( -f ~/.dircolors ) set COLORS=~/.dircolors
25
if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors
26
if ($?TERM) then
27
  if ( -f ~/.dircolors."$TERM" ) set COLORS=~/.dircolors."$TERM"
28
  if ( -f ~/.dir_colors."$TERM" ) set COLORS=~/.dir_colors."$TERM"
29
endif
30
 
31
if ( ! -e "$COLORS" ) exit
32
 
58 - 33
eval "`/usr/bin/dircolors -c $COLORS`"
4 - 34
 
35
if ( "$LS_COLORS" == '' ) exit
58 - 36
set color_none=`/bin/sed -n '/^COLOR.*none/Ip' < $COLORS`
4 - 37
if ( "$color_none" != '' ) then
38
   unset color_none
39
   exit
40
endif
41
unset color_none
42
 
43
finish:
44
alias ll 'ls -l --color=auto'
45
alias l. 'ls -d .* --color=auto'
46
alias ls 'ls --color=auto'