Rev 4 | Blame | Compare with Previous | Last modification | View Log | RSS feed
# /etc/cshrc## csh configuration for all shell invocations.# By default, we want this to get set.# Even for non-interactive, non-login shells.# Current threshold for system reserved uid/gids is 200# You could check uidgid reservation validity in# /usr/share/doc/setup-*/uidgid fileif ($uid > 199 && "`/usr/bin/id -gn`" == "`/usr/bin/id -un`") thenumask 002elseumask 022endifif ($?prompt) thenif ($?tcsh) thenset promptchars='$#'set prompt='[%n@%m %c]%# '# make completion work better by defaultset autolistelseset prompt=\[$user@`/bin/hostname -s`\]\$\endifendifif ( $?tcsh ) thenbindkey "^[[3~" delete-charendifbindkey "^R" i-search-backset echo_style = bothset histdup = eraseset savehist = (1024 merge)if ($?prompt) thenif ($?TERM) thenswitch($TERM)case xterm*:if ($?tcsh) thenset prompt='%{\033]0;%n@%m:%c\007%}[%n@%m %c]%# 'endifbreakswcase screen:if ($?tcsh) thenset prompt='%{\033_%n@%m:%c\033\\%}[%n@%m %c]%# 'endifbreakswdefault:breakswendswendifendifsetenv MAIL "/var/spool/mail/$USER"# Check if we aren't a loginshell and do stuff if we aren'tif (! $?loginsh) thenif ( -d /etc/profile.d ) thenset nonomatchforeach i ( /etc/profile.d/*.csh )if ( -r "$i" ) thenif ($?prompt) thensource "$i"elsesource "$i" >&/dev/nullendifendifendunset i nonomatchendifendif