### This file, named '.cshrc' meaning 'Running Conditions for the C shell',
### contains commands that are executed each time that the command
### interpreter 'csh' is invoked.

#	ignoreeof	- Not possible to logout with a control-D
#	noclobber	- More difficult to accidentally destroy files
#	history=	- The 50 last commands are saved and can be reused
#	mail=		- You are told that you have new mail when this file
#			  is modified

set noclobber history=500 mail=/usr/spool/mail/$USER
set printexitvalue

# Directories where commands are to be sought for execution, in order.
# The dot ('.') is the current directory, the tilde ('~') is your home
# directory. /usr/local/bin contains commands that are local for this
# computer. /usr/ucb, /bin, and /usr/bin contain commands that were
# distributed with the Operating System (UNIX, version BSD 4.2).
# /usr/local/m2 contains programs for modula-2 programming.

set path=( ~/bin /usr/local/andrew/bin /usr/local/gnu/bin /usr/local/bin /usr/ucb /bin /usr/bin /usr/hosts /usr/local/X11R6/bin /usr/local/X11 /interviews/bin/SUN4 /usr/games /usr/local/hack . )

if ($?prompt) then	# True when the shell is interactive
	source /usr/local/lib/aliases
	set prompt="%%%h Peppar: %M%/> "
	alias m2d 'more /usr/local/lib/modula2/\!*.def'
	alias sut su troot
	alias lh lharc
 	alias m2e 'more /usr/lib/modula2/src/\!*.def'
	alias precmd date
	alias lo exit		# lo is set as a short for logout
	alias rm rm -i		# A question will be asked before file removal
	alias hi history
        alias cd.. cd ..
	alias vf cd
	alias ls-a ls -a
	alias lsa ls -a
 	alias dir '\ls -alg \!* | more'
	w
	alias peppar ~/peppar
	alias S 'elm -s \!* d90-gog@lambda.sm.luth.se < \!*'
 	alias P 'elm -s \!* d90-pps@lambda.sm.luth.se < \!*'
	alias pp 'pr -f \!* | lpr -i8 -PHP1 &'
	alias pp25 'pr -f \!* | fuj25 -il &'
	alias pp21 'pr -f \!* | fuj21 -il &'
#	biff y 
	alias lab 'cd ~/M2/lab\!*'
        alias ow 'openwin >& /dev/null'
	alias ka 'kermit -l /dev/ttya -b 9600'
        alias kb 'kermit -l /dev/ttyb -b 9600'
	alias eat 'yes|rm -r \!*'
	alias archie 'rsh archie.funet.fi -l archie'
        alias funic 'ftp funic.funet.fi'
	alias whois 'whois -h NIC.DDN.MIL'
	alias hem 'mv * ~/hamta'
	alias move mv
	alias copy cp
	alias garbo 'ftp garbo.uwasa.fi'
	setenv PAGER 'less -cs'
	alias doman 'nroff -man \!* | less -cs'
				# setup for easy use of GNU emacs
  	alias l less
	alias .. cd ..
	alias lll 'll | l'
	alias x 'xinit;exit'
	alias fhost 'setenv FSP_HOST'
	alias fport 'setenv FSP_PORT'
	alias fdir 'setenv FSP_DIR'
	alias fcat      \(set noglob\; exec fcatcmd   \!\*\)
	alias fcd       setenv FSP_DIR \`\(set noglob\; exec fcdcmd \!\*\)\`
	alias fdu       \(set noglob\; exec fducmd    \!\*\)
	alias ffind     \(set noglob\; exec ffindcmd  \!\*\)
	alias fget      \(set noglob\; exec fgetcmd   \!\*\)
	alias fgrab     \(set noglob\; exec fgrabcmd  \!\*\)
	alias fless     \(set noglob\; exec fcatcmd   \!\* \| less\)
	alias fls       \(set noglob\; exec flscmd    \!\*\)
	alias fmore     \(set noglob\; exec fcatcmd   \!\* \| more\)
	alias fpro      \(set noglob\; exec fprocmd   \!\*\)
	alias fpwd      echo \$FSP_DIR on \$FSP_HOST port \$FSP_PORT
	alias frm       \(set noglob\; exec frmcmd    \!\*\)
	alias frmdir    \(set noglob\; exec frmdircmd \!\*\)
	alias ftouch    "touch \!:1;fput \!:1;rm \!:1"
	alias fgetall 	\(set noglob\; exec fgetcmd \* \>\& /dev/null \)
	alias fll	'fls -al'
	alias fhostd 	'setenv FSP_HOST `pwd | sed "s@.*/@@"`'


	set autolist

	setenv FSP_OPTS 131.215.131.148:21
	setenv FSP_TRACE
	setenv FSP_DELAY 3000
	setenv FSP_DIR /

	setenv IRCNICK Peppar
	setenv IRCNAME 'Rulen - LGHC'
	setenv NOREBIND
	setenv LC_CTYPE iso_8859_1
	setenv CPU SUN4
	setenv TEXFONTS /usr/local/lib/tex/fonts/pk
	setenv CC gcc
	
	foreach key ( \\304 \\305 \\326 \\344 \\345 \\366 )
	   bindkey $key self-insert-command
	end

	umask 022
	if ($?SOURCE) then
		source $SOURCE	# Excute the file named by $SOURCE
	endif			# if it is set (normally it isn't)
	stty pass8

endif
