dot.cshrc revision 1.8
11.8Ssnj#	$NetBSD: dot.cshrc,v 1.8 2018/03/01 06:12:09 snj Exp $
21.3Sperry#
31.3Sperry# This is the default .cshrc file.
41.3Sperry# Users are expected to edit it to meet their own needs.
51.3Sperry#
61.3Sperry# The commands in this file are executed each time a new csh shell
71.3Sperry# is started.
81.3Sperry#
91.3Sperry# See csh(1) for details.
101.3Sperry#
111.1Ssimonb
121.6Sdholland# Set your editor. Default to explicitly setting vi, as otherwise some
131.6Sdholland# software will run ed and other software will fail. Can be set to
141.6Sdholland# emacs or nano or whatever other editor you may prefer, but of course
151.6Sdholland# those editors must be installed before you can use them.
161.6Sdhollandsetenv	EDITOR	vi
171.6Sdholland
181.7Schristos# vi settings: set show-match auto-indent always-redraw shift-width=4
191.7Schristos#setenv	EXINIT	"se sm ai redraw sw=4"
201.7Schristos
211.6Sdholland# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
221.6Sdholland# set will be run by preference to $EDITOR by some software. It is
231.6Sdholland# mostly historical and usually does not need to be set.
241.5Stsutsui#setenv	VISUAL	${EDITOR}
251.6Sdholland
261.6Sdholland# Set the pager. This is used by, among other things, man(1) for
271.6Sdholland# showing man pages. The default is "more". Another reasonable choice
281.6Sdholland# (included with the system by default) is "less".
291.5Stsutsui#setenv	PAGER	more
301.1Ssimonb
311.6Sdholland# Set your default printer, if desired.
321.7Schristos#setenv	PRINTER	change-this-to-a-printer
331.6Sdholland
341.6Sdholland# Set the search path for programs.
351.8Ssnjset path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \
361.1Ssimonb	    /usr/local/{,s}bin)
371.1Ssimonb
381.1Ssimonbif ($?prompt) then
391.1Ssimonb	# An interactive shell -- set some stuff up
401.6Sdholland
411.6Sdholland	# Filename completion.
421.1Ssimonb	set filec
431.6Sdholland
441.6Sdholland	# Size of the history buffer.
451.1Ssimonb	set history = 1000
461.6Sdholland
471.6Sdholland	# Do not exit on EOF condition (e.g. ^D typed)
481.6Sdholland	# (disabled by default, not default behavior)
491.6Sdholland	#set ignoreeof
501.6Sdholland
511.6Sdholland	# Set the location of your incoming email for mail notification.
521.1Ssimonb	set mail = (/var/mail/$USER)
531.6Sdholland
541.6Sdholland	# Set the prompt to include the hostname.
551.1Ssimonb	set mch = `hostname -s`
561.1Ssimonb	set prompt = "${mch:q}: {\!} "
571.1Ssimonbendif
58