Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# /etc/csh.login
2
 
3
# System wide environment and startup programs, for login setup
4
 
5
if ( ! ${?PATH} ) then
6
        if ( $uid == 0 ) then
7
		setenv PATH "/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin"
8
        else
9
		setenv PATH "/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin"
10
        endif
11
else
12
	#add sbin directories to the path
13
	foreach p ( /usr/local/sbin /usr/sbin )
14
		switch (":${PATH}:")
15
		case "*:${p}:*":
16
			breaksw
17
		default:
18
			if ( $uid == 0 ) then
19
	                        set path = ( ${p} ${path:q} )
20
			else
21
	                        set path = ( ${path:q} ${p} )
22
			endif
23
			breaksw
24
		endsw
25
	end
26
endif
27
 
28
setenv HOSTNAME `/usr/bin/hostname`
29
set history=1000
30
 
31
if ( -d /etc/profile.d ) then
32
        set nonomatch
33
        foreach i ( /etc/profile.d/*.csh )
34
                if ( -r "$i" ) then
35
	                        if ($?prompt) then
36
	                              source "$i"
37
	                        else
38
	                              source "$i" >& /dev/null
39
	                        endif
40
                endif
41
        end
42
        unset i nonomatch
43
endif