Home | History | Annotate | Line # | Download | only in skel
dot.profile revision 1.12
      1  1.12       uwe #	$NetBSD: dot.profile,v 1.12 2024/09/23 12:12:36 uwe Exp $
      2   1.3     perry #
      3   1.3     perry # This is the default .profile file.
      4   1.3     perry # Users are expected to edit it to meet their own needs.
      5   1.3     perry #
      6   1.3     perry # The commands in this file are executed when an sh user first
      7   1.3     perry # logs in.
      8   1.3     perry #
      9   1.3     perry # See sh(1) for details.
     10   1.3     perry #
     11   1.1    simonb 
     12  1.11       uwe # Set your editor.  Can be set to emacs or nano or whatever other
     13  1.11       uwe # editor you may prefer, but of course those editors must be installed
     14  1.11       uwe # before you can use them.  Default to explicitly setting vi, as
     15  1.11       uwe # otherwise some software (including sh's own fc) will run ed and
     16  1.11       uwe # other software will fail.
     17   1.7  dholland export EDITOR=vi
     18   1.7  dholland 
     19   1.8  christos # vi settings: set show-match auto-indent always-redraw shift-width=4
     20   1.8  christos #export EXINIT="se sm ai redraw sw=4"
     21   1.8  christos 
     22   1.7  dholland # VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
     23   1.7  dholland # set will be run by preference to $EDITOR by some software. It is
     24   1.7  dholland # mostly historical and usually does not need to be set.
     25   1.7  dholland #export VISUAL=${EDITOR}
     26   1.7  dholland 
     27   1.7  dholland # Set the pager. This is used by, among other things, man(1) for
     28   1.7  dholland # showing man pages. The default is "more". Another reasonable choice
     29   1.7  dholland # (included with the system by default) is "less".
     30  1.12       uwe #export PAGER=less
     31  1.12       uwe 
     32  1.12       uwe # Many modern terminal emulators don't provide a way to disable
     33  1.12       uwe # alternate screen switching (like xterm's titeInhibit).  less(1) has
     34  1.12       uwe # its own option (-X) for that that you can use to alleviate the pain,
     35  1.12       uwe # as PAGER is the most common scenario for hitting this.  Add other
     36  1.12       uwe # flags according to taste.
     37  1.12       uwe #export LESS='-i -M -X'
     38   1.7  dholland 
     39   1.7  dholland # Set your default printer, if desired.
     40   1.9  dholland #export PRINTER=change-this-to-a-printer
     41   1.7  dholland 
     42   1.7  dholland # Set the search path for programs.
     43  1.10       snj PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin
     44   1.1    simonb PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
     45   1.1    simonb export PATH
     46   1.1    simonb 
     47   1.7  dholland # Configure the shell to load .shrc at startup time.
     48   1.7  dholland # This will happen for every shell started, not just login shells.
     49   1.4   hubertf export ENV=$HOME/.shrc
     50