Module Name: src
Committed By: dholland
Date: Wed Oct 19 11:27:26 UTC 2011
Modified Files:
src/etc/skel: dot.cshrc dot.profile
Log Message:
Re-enable EDITOR=vi because otherwise stuff breaks. (Or runs ed, which
is arguably equivalent to breaking.)
Per the discussion on tech-userlevel, document the settings offered.
(All of this needs quite a bit more work still.)
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/etc/skel/dot.cshrc
cvs rdiff -u -r1.6 -r1.7 src/etc/skel/dot.profile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/skel/dot.cshrc
diff -u src/etc/skel/dot.cshrc:1.5 src/etc/skel/dot.cshrc:1.6
--- src/etc/skel/dot.cshrc:1.5 Wed Oct 19 10:14:35 2011
+++ src/etc/skel/dot.cshrc Wed Oct 19 11:27:26 2011
@@ -1,4 +1,4 @@
-# $NetBSD: dot.cshrc,v 1.5 2011/10/19 10:14:35 tsutsui Exp $
+# $NetBSD: dot.cshrc,v 1.6 2011/10/19 11:27:26 dholland Exp $
#
# This is the default .cshrc file.
# Users are expected to edit it to meet their own needs.
@@ -9,19 +9,46 @@
# See csh(1) for details.
#
-#setenv EDITOR vi
+# Set your editor. Default to explicitly setting vi, as otherwise some
+# software will run ed and other software will fail. Can be set to
+# emacs or nano or whatever other editor you may prefer, but of course
+# those editors must be installed before you can use them.
+setenv EDITOR vi
+
+# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
+# set will be run by preference to $EDITOR by some software. It is
+# mostly historical and usually does not need to be set.
#setenv VISUAL ${EDITOR}
+
+# Set the pager. This is used by, among other things, man(1) for
+# showing man pages. The default is "more". Another reasonable choice
+# (included with the system by default) is "less".
#setenv PAGER more
+# Set your default printer, if desired.
+#setenv PRINTER change-this-to-a-printer
+
+# Set the search path for programs.
set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,X11R6/bin,pkg/{,s}bin,games} \
/usr/local/{,s}bin)
if ($?prompt) then
# An interactive shell -- set some stuff up
+
+ # Filename completion.
set filec
+
+ # Size of the history buffer.
set history = 1000
- set ignoreeof
+
+ # Do not exit on EOF condition (e.g. ^D typed)
+ # (disabled by default, not default behavior)
+ #set ignoreeof
+
+ # Set the location of your incoming email for mail notification.
set mail = (/var/mail/$USER)
+
+ # Set the prompt to include the hostname.
set mch = `hostname -s`
set prompt = "${mch:q}: {\!} "
endif
Index: src/etc/skel/dot.profile
diff -u src/etc/skel/dot.profile:1.6 src/etc/skel/dot.profile:1.7
--- src/etc/skel/dot.profile:1.6 Wed Oct 19 10:14:35 2011
+++ src/etc/skel/dot.profile Wed Oct 19 11:27:26 2011
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.6 2011/10/19 10:14:35 tsutsui Exp $
+# $NetBSD: dot.profile,v 1.7 2011/10/19 11:27:26 dholland Exp $
#
# This is the default .profile file.
# Users are expected to edit it to meet their own needs.
@@ -9,11 +9,30 @@
# See sh(1) for details.
#
+# Set your editor. Default to explicitly setting vi, as otherwise some
+# software will run ed and other software will fail. Can be set to
+# emacs or nano or whatever other editor you may prefer, but of course
+# those editors must be installed before you can use them.
+export EDITOR=vi
+
+# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
+# set will be run by preference to $EDITOR by some software. It is
+# mostly historical and usually does not need to be set.
+#export VISUAL=${EDITOR}
+
+# Set the pager. This is used by, among other things, man(1) for
+# showing man pages. The default is "more". Another reasonable choice
+# (included with the system by default) is "less".
+#export PAGER=more
+
+# Set your default printer, if desired.
+#setenv PRINTER change-this-to-a-printer
+
+# Set the search path for programs.
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin
PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
export PATH
-#export EDITOR=vi
-#export PAGER=more
-
+# Configure the shell to load .shrc at startup time.
+# This will happen for every shell started, not just login shells.
export ENV=$HOME/.shrc