dot.cshrc revision 1.6
1#	$NetBSD: dot.cshrc,v 1.6 2011/10/19 11:27:26 dholland Exp $
2#
3# This is the default .cshrc file.
4# Users are expected to edit it to meet their own needs.
5#
6# The commands in this file are executed each time a new csh shell
7# is started.
8#
9# See csh(1) for details.
10#
11
12# Set your editor. Default to explicitly setting vi, as otherwise some
13# software will run ed and other software will fail. Can be set to
14# emacs or nano or whatever other editor you may prefer, but of course
15# those editors must be installed before you can use them.
16setenv	EDITOR	vi
17
18# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
19# set will be run by preference to $EDITOR by some software. It is
20# mostly historical and usually does not need to be set.
21#setenv	VISUAL	${EDITOR}
22
23# Set the pager. This is used by, among other things, man(1) for
24# showing man pages. The default is "more". Another reasonable choice
25# (included with the system by default) is "less".
26#setenv	PAGER	more
27
28# Set your default printer, if desired.
29#setenv PRINTER change-this-to-a-printer
30
31# Set the search path for programs.
32set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,X11R6/bin,pkg/{,s}bin,games} \
33	    /usr/local/{,s}bin)
34
35if ($?prompt) then
36	# An interactive shell -- set some stuff up
37
38	# Filename completion.
39	set filec
40
41	# Size of the history buffer.
42	set history = 1000
43
44	# Do not exit on EOF condition (e.g. ^D typed)
45	# (disabled by default, not default behavior)
46	#set ignoreeof
47
48	# Set the location of your incoming email for mail notification.
49	set mail = (/var/mail/$USER)
50
51	# Set the prompt to include the hostname.
52	set mch = `hostname -s`
53	set prompt = "${mch:q}: {\!} "
54endif
55