11.10Stsutsui# $NetBSD: dot.cshrc,v 1.10 2025/02/02 03:32:02 tsutsui 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.9Suwe#setenv PAGER less 301.9Suwe 311.9Suwe# Many modern terminal emulators don't provide a way to disable 321.9Suwe# alternate screen switching (like xterm's titeInhibit). less(1) has 331.9Suwe# its own option (-X) for that that you can use to alleviate the pain, 341.9Suwe# as PAGER is the most common scenario for hitting this. Add other 351.9Suwe# flags according to taste. 361.9Suwe#setenv LESS "-i -M -X" 371.9Suwe 381.1Ssimonb 391.6Sdholland# Set your default printer, if desired. 401.7Schristos#setenv PRINTER change-this-to-a-printer 411.6Sdholland 421.6Sdholland# Set the search path for programs. 431.8Ssnjset path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \ 441.1Ssimonb /usr/local/{,s}bin) 451.1Ssimonb 461.1Ssimonbif ($?prompt) then 471.1Ssimonb # An interactive shell -- set some stuff up 481.6Sdholland 491.6Sdholland # Filename completion. 501.1Ssimonb set filec 511.6Sdholland 521.6Sdholland # Size of the history buffer. 531.1Ssimonb set history = 1000 541.6Sdholland 551.6Sdholland # Do not exit on EOF condition (e.g. ^D typed) 561.6Sdholland # (disabled by default, not default behavior) 571.6Sdholland #set ignoreeof 581.6Sdholland 591.6Sdholland # Set the location of your incoming email for mail notification. 601.1Ssimonb set mail = (/var/mail/$USER) 611.6Sdholland 621.6Sdholland # Set the prompt to include the hostname. 631.1Ssimonb set mch = `hostname -s` 641.1Ssimonb set prompt = "${mch:q}: {\!} " 651.10Stsutsui 661.10Stsutsui # Configure the shell (on su(1) etc.) to load .shrc at startup time. 671.10Stsutsui setenv ENV ~/.shrc 681.1Ssimonbendif 69