#
#	This file is executed each time a subshell is spawned.
#

set path=( /usr/ucb /pkg/java-1.2.1/bin /encs/bin /site/bin /usr/bin /usr/sbin \
           /bin /usr/hosts /usr/X11R6/bin /sbin /usr/lib \
           ~ ~/bin ~/bin/dev )

# Default permission
#  on file: 600 
#  on dir : 700
umask 077   

# Set this for all shells
set noclobber
limit coredumpsize 0


# Skip remaining setup if not an interactive shell
if ($?USER == 0 || $?prompt == 0) then
	exit
endif

# Aliases for all shells
alias cp            'cp -i'
alias mv            'mv -i'
alias rm            'rm -i'
alias quota         'quota -v'
alias xssh          'ssh -X'

# ...added by SM
alias dir           'ls -a' # Do I really need this now???
alias del           'rm -i' # And this one?
alias md            'mkdir'
alias rmd           'rmdir'
alias screensaver   'xscreensaver &'
alias lock          'xscreensaver-command -lock'
alias msgon         'mesg y'
alias msgoff        'mesg n'

setenv EDITOR vim
setenv CVSEDITOR vim
setenv CVS_RSH ssh

set notify
set ignoreeof # Prevents Ctrl+D from logging out
set history  = 100
set savehist = 100
set prompt   = "%m.%n [%c] % "
set filec		# file completion on ESC list on ^D

# Other aliases
alias ls    'ls --color'
alias lc  	'ls -F'
alias ll    'ls -l'
alias hi  	'history'
alias 	clear

# EOF
