dot.cshrc revision 1.9
1# $NetBSD: dot.cshrc,v 1.9 2024/09/23 12:20:23 uwe 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# vi settings: set show-match auto-indent always-redraw shift-width=4 19#setenv EXINIT "se sm ai redraw sw=4" 20 21# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if 22# set will be run by preference to $EDITOR by some software. It is 23# mostly historical and usually does not need to be set. 24#setenv VISUAL ${EDITOR} 25 26# Set the pager. This is used by, among other things, man(1) for 27# showing man pages. The default is "more". Another reasonable choice 28# (included with the system by default) is "less". 29#setenv PAGER less 30 31# Many modern terminal emulators don't provide a way to disable 32# alternate screen switching (like xterm's titeInhibit). less(1) has 33# its own option (-X) for that that you can use to alleviate the pain, 34# as PAGER is the most common scenario for hitting this. Add other 35# flags according to taste. 36#setenv LESS "-i -M -X" 37 38 39# Set your default printer, if desired. 40#setenv PRINTER change-this-to-a-printer 41 42# Set the search path for programs. 43set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \ 44 /usr/local/{,s}bin) 45 46if ($?prompt) then 47 # An interactive shell -- set some stuff up 48 49 # Filename completion. 50 set filec 51 52 # Size of the history buffer. 53 set history = 1000 54 55 # Do not exit on EOF condition (e.g. ^D typed) 56 # (disabled by default, not default behavior) 57 #set ignoreeof 58 59 # Set the location of your incoming email for mail notification. 60 set mail = (/var/mail/$USER) 61 62 # Set the prompt to include the hostname. 63 set mch = `hostname -s` 64 set prompt = "${mch:q}: {\!} " 65endif 66