11.12Suwe#	$NetBSD: dot.profile,v 1.12 2024/09/23 12:12:36 uwe Exp $
21.3Sperry#
31.3Sperry# This is the default .profile 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 when an sh user first
71.3Sperry# logs in.
81.3Sperry#
91.3Sperry# See sh(1) for details.
101.3Sperry#
111.1Ssimonb
121.11Suwe# Set your editor.  Can be set to emacs or nano or whatever other
131.11Suwe# editor you may prefer, but of course those editors must be installed
141.11Suwe# before you can use them.  Default to explicitly setting vi, as
151.11Suwe# otherwise some software (including sh's own fc) will run ed and
161.11Suwe# other software will fail.
171.7Sdhollandexport EDITOR=vi
181.7Sdholland
191.8Schristos# vi settings: set show-match auto-indent always-redraw shift-width=4
201.8Schristos#export EXINIT="se sm ai redraw sw=4"
211.8Schristos
221.7Sdholland# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
231.7Sdholland# set will be run by preference to $EDITOR by some software. It is
241.7Sdholland# mostly historical and usually does not need to be set.
251.7Sdholland#export VISUAL=${EDITOR}
261.7Sdholland
271.7Sdholland# Set the pager. This is used by, among other things, man(1) for
281.7Sdholland# showing man pages. The default is "more". Another reasonable choice
291.7Sdholland# (included with the system by default) is "less".
301.12Suwe#export PAGER=less
311.12Suwe
321.12Suwe# Many modern terminal emulators don't provide a way to disable
331.12Suwe# alternate screen switching (like xterm's titeInhibit).  less(1) has
341.12Suwe# its own option (-X) for that that you can use to alleviate the pain,
351.12Suwe# as PAGER is the most common scenario for hitting this.  Add other
361.12Suwe# flags according to taste.
371.12Suwe#export LESS='-i -M -X'
381.7Sdholland
391.7Sdholland# Set your default printer, if desired.
401.9Sdholland#export PRINTER=change-this-to-a-printer
411.7Sdholland
421.7Sdholland# Set the search path for programs.
431.10SsnjPATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin
441.1SsimonbPATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
451.1Ssimonbexport PATH
461.1Ssimonb
471.7Sdholland# Configure the shell to load .shrc at startup time.
481.7Sdholland# This will happen for every shell started, not just login shells.
491.4Shubertfexport ENV=$HOME/.shrc
50