dot.profile revision 1.7 1 1.7 dholland # $NetBSD: dot.profile,v 1.7 2011/10/19 11:27:26 dholland 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.7 dholland # Set your editor. Default to explicitly setting vi, as otherwise some
13 1.7 dholland # software will run ed and other software will fail. Can be set to
14 1.7 dholland # emacs or nano or whatever other editor you may prefer, but of course
15 1.7 dholland # those editors must be installed before you can use them.
16 1.7 dholland export EDITOR=vi
17 1.7 dholland
18 1.7 dholland # VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
19 1.7 dholland # set will be run by preference to $EDITOR by some software. It is
20 1.7 dholland # mostly historical and usually does not need to be set.
21 1.7 dholland #export VISUAL=${EDITOR}
22 1.7 dholland
23 1.7 dholland # Set the pager. This is used by, among other things, man(1) for
24 1.7 dholland # showing man pages. The default is "more". Another reasonable choice
25 1.7 dholland # (included with the system by default) is "less".
26 1.7 dholland #export PAGER=more
27 1.7 dholland
28 1.7 dholland # Set your default printer, if desired.
29 1.7 dholland #setenv PRINTER change-this-to-a-printer
30 1.7 dholland
31 1.7 dholland # Set the search path for programs.
32 1.5 cube PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin
33 1.1 simonb PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
34 1.1 simonb export PATH
35 1.1 simonb
36 1.7 dholland # Configure the shell to load .shrc at startup time.
37 1.7 dholland # This will happen for every shell started, not just login shells.
38 1.4 hubertf export ENV=$HOME/.shrc
39