#.cshrc

#  set the file mask so new files are 755
umask 022

#  if this isn't an interactive shell, don't bother setting up aliases
if ($?prompt == 0) exit

#  turn on file completion and command history
set	fignore=(.o .out \~) \
	filec \
	history=100 \
	nobeep \
	noclobber

#  set up a few useful aliases
alias ll 	/bin/ls -alFb
alias cd..      cd ..

alias prn       "lpr -Px2up"

alias rm	/bin/rm -i
alias RM        /bin/rm
alias mv	/bin/mv -i
alias MV        /bin/mv
alias cp        /bin/cp -i
alias CP        /bin/cp

alias nocore	limit coredumpsize 0k

if ( "`uname`" == "Linux" ) then
alias more /usr/bin/less -eMq
alias MORE /bin/more
alias less /usr/bin/less -ceMq
alias LESS /usr/bin/less
else
if ( "`uname -s -r`" != "SunOS 4.1.4" ) then
alias MORE	/usr/ucb/more
alias more	/usr/local/bin/less -eMq
alias less	/usr/local/bin/less -ceMq
alias LESS	/usr/local/bin/less
endif
endif

alias seebugs	"setenv DISPLAY thelonious:0"

alias prettify  "indent -bl -bap -bacc -bad -ncdb -di3 -i3 -nce -cli0.5 -npsl"

alias acs       "rlogin -l droyko acs5.acs.ucalgary.ca"

alias pushd	'pushd \!*; set prompt=">>~`whoami`@`hostname`:$cwd>"'
alias popd	'popd; set prompt=">>~`whoami`@`hostname`:$cwd>"'
alias cd 'cd \!*; set prompt=">>~`whoami`@`hostname`:$cwd>"'
cd .

# set message receiveing on
mesg y

stty erase ^H

