Revision 8718,
837 bytes
checked in by daisuke, 9 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 |
---|
6 | foreach 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 |
---|
18 | end |
---|
19 | |
---|
20 | setenv HOSTNAME `/bin/hostname` |
---|
21 | set history=1000 |
---|
22 | |
---|
23 | if ( -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 |
---|
35 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.