diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-09-11 12:39:51 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-09-11 12:39:51 +0000 |
commit | 25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d (patch) | |
tree | 9afa5ad3fecc7aca66222da768ba0245ae479d65 /csh.cshrc | |
download | setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.gz setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.bz2 setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.xz setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.zip |
move everything under trunk directory
Diffstat (limited to 'csh.cshrc')
-rw-r--r-- | csh.cshrc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/csh.cshrc b/csh.cshrc new file mode 100644 index 0000000..6010599 --- /dev/null +++ b/csh.cshrc @@ -0,0 +1,36 @@ +# /etc/cshrc +# +# csh configuration for all shell invocations. Currently, a prompt. + +# (pixel) tcsh doesn't handle directory in the PATH being non-readable +# in security high, /usr/bin is 751, aka non-readable +# using unhash fixes the pb +if (! -r /usr/bin) then + unhash +endif + +if ( $uid == 0 ) limit coredumpsize 1000000 + +if ($?prompt) then + if ($?tcsh) then + set prompt='[%n@%m %c]$ ' + else + set prompt=\[`id -nu`@`hostname -s`\]\$\ + endif +endif + +test -d /etc/profile.d +if ($status == 0) then + set nonomatch + foreach i ( /etc/profile.d/*.csh ) + test -r $i + if ($status == 0) then + if ( $shlvl == 1 ) then + $shell -f $i && source $i || echo "/etc/csh.cshrc: error in $i" + else + source $i + endif + endif + end + unset i nonomatch +endif |