if ( -e /etc/inittab ) then
	stty -tabs echoe -parenb cs8
	set mbox = /usr/mail/$user
	setenv	EDITOR	/usr/bin/vi
else
	stty crt -tabs
	set	mbox = /usr/spool/mail/$user
	setenv	EDITOR	/usr/ucb/vi
endif

set mail = ( 30 $mbox /usr/lib/news/history )
setenv MAIL	$mbox
setenv PAGER	/ufs/prisms/ubin/less
setenv LESS 	"-m"
setenv MORE 	-c

set nospy
source /ufs/prisms/support/templates/login_setenv

setenv J	/pic1/Jobs

set notify
set noglob

eval `tset -sQ`

if ( $TERM == dialup  ||  $TERM == network  || $TERM == arpanet ) then
	echo -n "Terminal type? "
	set term = $<
	set TERM = $term
	unsetenv TERMCAP
endif

if ( ! $?pathset ) then
	if ( $?prompt ) then
		setenv MACHINE `hostname`
	    	set prompt="$user@$MACHINE-> "
	endif

	if ( -e $home/.setpath ) then
	   source $home/.setpath
	else
	   source /ufs/prisms/support/templates/login_path
	   set path = ( /usr/bsd $path /usr/sbin /usr/lbin /usr/demos/bin /usr/video/vfr/bin /usr/people/4Dgifts/iristools/imgtools /usr/people/4Dgifts/iristools/tools )
	endif
	setenv pathset 1
endif

setenv MANPATH /ufs/prisms/man:/ufs/local/man:/ufs/unsupp/man:/usr/catman:/usr/man:/usr/share/catman:/usr/share/man

set history = 64

alias h		history
alias j		'jobs -l'

if ( $?USER ) then
	if ( "$USER" != "$user" && -f ~$USER/.cshrc) source ~$USER/.cshrc
endif

unset noglob
umask 002

if ( ! $?nospy ) then
	echo -n "Do you want to enter SPY? "
	set n = $<
	if ( "$n" != "N" && "$n" != "n" && "$n" != "no" ) then
		spy
	endif
endif
