# $NetBSD: dot.profile,v 1.10 2018/03/01 06:12:09 snj Exp $ # # This is the default .profile file. # Users are expected to edit it to meet their own needs. # # The commands in this file are executed when an sh user first # logs in. # # 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 # vi settings: set show-match auto-indent always-redraw shift-width=4 #export EXINIT="se sm ai redraw sw=4" # 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=less # Set your default printer, if desired. #export 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/pkg/bin PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin export PATH # Configure the shell to load .shrc at startup time. # This will happen for every shell started, not just login shells. if [ -r $HOME/.${SHELL}rc ]; then export ENV=$HOME/.shrc elif [ `basename $SHELL` = 'bash' ] && [ -r $HOME/.bashrc ]; then . $HOME/.bashrc fi # Set locale export LANG="en_US.UTF-8" # Set MANPATH if [ $MANPATH ]; then # Set the builtins first if it's already set MANPATH="/usr/bin/man:/usr/share/man:/usr/X11R7/man:${MANPATH}" else MANPATH="/usr/bin/man:/usr/share/man:/usr/X11R7/man" fi if [ -d /usr/pkg/man ]; then MANPATH="${MANPATH}:/usr/pkg/man" fi if [ -d /usr/pkg/lib/perl5/man ]; then MANPATH="${MANPATH}:/usr/pkg/lib/perl5/man" fi if [ -d /usr/pkg/lib/perl5/vendor_perl/man ]; then MANPATH="${MANPATH}:/usr/pkg/lib/perl5/vendor_perl/man" fi if [ -d /usr/pkg/gnu/man ]; then MANPATH="${MANPATH}:/usr/pkg/gnu/man" fi if [ -d /usr/pkg/gcc10/man ]; then MANPATH="${MANPATH}:/usr/pkg/gcc10/man" fi if [ -d /usr/pkg/java/openjdk17/man ]; then MANPATH="${MANPATH}:/usr/pkg/java/openjdk17/man" fi if [ -d /usr/pkg/libreoffice-24.8.3.2/share/man ]; then MANPATH="${MANPATH}:/usr/pkg/libreoffice-24.8.3.2/share/man" fi export MANPATH