#!/bin/csh 

# a sample cshrc file that sets environment variables and path appropriately

if (!($?term)) set term = dumb

set path = ( ~$USER/bin /usr/ucb /usr/bin /usr/lang \
             /etc /usr/etc /usr/games /usr/hosts . )

# set default protection to be owner (rw), group (rw), others (read only)
umask 002

limit coredumpsize 0       # no dump core
unset autologout           # don't autologout
set noclobber              # do not overwrite if file existed
set ignoreeof              # no control-d for logout
set notify                 

setenv PWD      $cwd 
setenv EDITOR   emacs
setenv MANPATH  /usr/man:/usr/lang/man:/usr/local/man
setenv XAPPLRESDIR /usr/local/lib/X11/app-defaults


if ($?CAM8BASE == 0) setenv CAM8BASE /cam8
if ($?STEP_INPUTS == 0) setenv STEP_INPUTS /cam8/common
if ($?STEP_SPEED == 0) setenv STEP_SPEED 25

set lpath = ($CAM8BASE/bin /usr/local/bin )
set path =  ($path $lpath)

#  set manual pages search path appropriately

setenv MANPATH /usr/man:/usr/local/man:$CAM8BASE/man


#         skip remaining setup if not an interactive shell

if ($?USER == 0 || $?prompt == 0) exit

set history = 50

#if X window system then resize 
if ( $TERM == xterm || $TERM == x11term ) then
  setenv TERM xterm
  xresize
endif

#         aliases

alias setprompt	set prompt = `hostname`:'${cwd}\ \%\ '
alias cd   	'cd \!*; setprompt'
alias popd 	'popd \!*;setprompt'
alias pushd 	'pushd \!*;setprompt'
alias 	'clear'
alias xinit	'xinit ; kbd_mode -a'

setprompt
