Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/skel Re-enable EDITOR=vi because otherwise stuff breaks....



details:   https://anonhg.NetBSD.org/src/rev/f4a4adebcbc2
branches:  trunk
changeset: 770512:f4a4adebcbc2
user:      dholland <dholland%NetBSD.org@localhost>
date:      Wed Oct 19 11:27:26 2011 +0000

description:
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.)

diffstat:

 etc/skel/dot.cshrc   |  33 ++++++++++++++++++++++++++++++---
 etc/skel/dot.profile |  27 +++++++++++++++++++++++----
 2 files changed, 53 insertions(+), 7 deletions(-)

diffs (101 lines):

diff -r a65bf6698013 -r f4a4adebcbc2 etc/skel/dot.cshrc
--- a/etc/skel/dot.cshrc        Wed Oct 19 11:12:37 2011 +0000
+++ b/etc/skel/dot.cshrc        Wed Oct 19 11:27:26 2011 +0000
@@ -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
diff -r a65bf6698013 -r f4a4adebcbc2 etc/skel/dot.profile
--- a/etc/skel/dot.profile      Wed Oct 19 11:12:37 2011 +0000
+++ b/etc/skel/dot.profile      Wed Oct 19 11:27:26 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index