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

Revision 8717, 794 bytes checked in by daisuke, 10 years ago (diff)

add initial version

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