source: projects/setup/trunk/csh.login @ 8718

Revision 8718, 837 bytes checked in by daisuke, 10 years ago (diff)

update to 2.9.0

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