You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
561 B
30 lines
561 B
# /etc/cshrc |
|
# |
|
# csh configuration for all shell invocations. |
|
|
|
# by default, we want this to get set. |
|
# Even for non-interactive, non-login shells. |
|
[ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ] |
|
if $status then |
|
umask 022 |
|
else |
|
umask 002 |
|
endif |
|
|
|
if ($?prompt) then |
|
if ($?tcsh) then |
|
set prompt='[%n@%m %c]$ ' |
|
else |
|
set prompt=\[`id -nu`@`hostname -s`\]\$\ |
|
endif |
|
endif |
|
|
|
if ( -d /etc/profile.d ) then |
|
set nonomatch |
|
foreach i ( /etc/profile.d/*.csh ) |
|
if ( -r $i ) then |
|
source $i |
|
endif |
|
end |
|
unset i nonomatch |
|
endif
|
|
|