dot.cshrc revision 1.6
11.6Sdholland# $NetBSD: dot.cshrc,v 1.6 2011/10/19 11:27:26 dholland 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.6Sdholland# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if 191.6Sdholland# set will be run by preference to $EDITOR by some software. It is 201.6Sdholland# mostly historical and usually does not need to be set. 211.5Stsutsui#setenv VISUAL ${EDITOR} 221.6Sdholland 231.6Sdholland# Set the pager. This is used by, among other things, man(1) for 241.6Sdholland# showing man pages. The default is "more". Another reasonable choice 251.6Sdholland# (included with the system by default) is "less". 261.5Stsutsui#setenv PAGER more 271.1Ssimonb 281.6Sdholland# Set your default printer, if desired. 291.6Sdholland#setenv PRINTER change-this-to-a-printer 301.6Sdholland 311.6Sdholland# Set the search path for programs. 321.4Scubeset path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,X11R6/bin,pkg/{,s}bin,games} \ 331.1Ssimonb /usr/local/{,s}bin) 341.1Ssimonb 351.1Ssimonbif ($?prompt) then 361.1Ssimonb # An interactive shell -- set some stuff up 371.6Sdholland 381.6Sdholland # Filename completion. 391.1Ssimonb set filec 401.6Sdholland 411.6Sdholland # Size of the history buffer. 421.1Ssimonb set history = 1000 431.6Sdholland 441.6Sdholland # Do not exit on EOF condition (e.g. ^D typed) 451.6Sdholland # (disabled by default, not default behavior) 461.6Sdholland #set ignoreeof 471.6Sdholland 481.6Sdholland # Set the location of your incoming email for mail notification. 491.1Ssimonb set mail = (/var/mail/$USER) 501.6Sdholland 511.6Sdholland # Set the prompt to include the hostname. 521.1Ssimonb set mch = `hostname -s` 531.1Ssimonb set prompt = "${mch:q}: {\!} " 541.1Ssimonbendif 55