]>
Commit | Line | Data |
---|---|---|
9bfefe38 | 1 | # /etc/cshrc |
2 | ||
3 | # System wide environment and startup programs for csh users | |
4 | ||
5 | setenv PATH "${PATH}:/usr/X11R6/bin" | |
6 | ||
7 | if ($?prompt) then | |
8 | [ "$SHELL" = /bin/tcsh ] | |
9 | if ($status == 0) then | |
25c025a5 | 10 | set prompt='%n@%m %c$ ' |
9bfefe38 | 11 | else |
25c025a5 | 12 | set prompt=\`id -nu`@`hostname -s`\\$\ |
9bfefe38 | 13 | endif |
14 | endif | |
15 | ||
16 | limit coredumpsize 1000000 | |
17 | ||
18 | [ `id -gn` = `id -un` -a `id -u` -gt 14 ] | |
19 | if $status then | |
20 | umask 022 | |
21 | else | |
22 | umask 002 | |
23 | endif | |
24 | ||
25 | setenv HOSTNAME `/bin/hostname` | |
26 | set history=1000 | |
27 | ||
28 | test -d /etc/profile.d | |
29 | if ($status == 0) then | |
30 | set nonomatch | |
31 | foreach i ( /etc/profile.d/*.csh ) | |
32 | test -f $i | |
33 | if ($status == 0) then | |
34 | source $i | |
35 | endif | |
36 | end | |
37 | unset nonomatch | |
38 | endif |