aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/john/.profile9
-rw-r--r--home/john/.shrc15
2 files changed, 15 insertions, 9 deletions
diff --git a/home/john/.profile b/home/john/.profile
index f7db422..dea5bb8 100644
--- a/home/john/.profile
+++ b/home/john/.profile
@@ -31,6 +31,15 @@ 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
+
+# Set the search path for man.
+MANPATH=/usr/local/man:/usr/pkg/man:/usr/X11R7/man:/usr/share/man
+export MANPATH
+
# Configure the shell to load .shrc at startup time.
# This will happen for every shell started, not just login shells.
export ENV=$HOME/.shrc
diff --git a/home/john/.shrc b/home/john/.shrc
index 6663623..b230756 100644
--- a/home/john/.shrc
+++ b/home/john/.shrc
@@ -4,15 +4,12 @@ if [ -f /etc/shrc ]; then
. /etc/shrc
fi
-SYSPATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
-PATH=/usr/pkg/heirloom-doctools/bin:$SYSPATH
-export SYSPATH PATH
-
-SYSMANPATH=/usr/local/man:/usr/pkg/man:/usr/X11R7/man:/usr/share/man
-MANPATH=/usr/pkg/heirloom-doctools/man:$SYSMANPATH
-export SYSMANPATH MANPATH
-
case "$-" in *i*)
+ [ -z "$_PATH" ] && export _PATH=$PATH
+ [ -z "$_MANPATH" ] && export _MANPATH=$MANPATH
+ export PATH=/usr/pkg/heirloom-doctools/bin:$_PATH
+ export MANPATH=/usr/pkg/heirloom-doctools/man:$_MANPATH
+
export GIT_EDITOR='vi +:"so /usr/local/share/git.exrc"'
alias ack='ack --noheading'
@@ -40,6 +37,6 @@ case "$-" in *i*)
}
sys() {
- PATH=$SYSPATH MANPATH=$SYSMANPATH "$@"
+ PATH=$_PATH MANPATH=$_MANPATH "$@"
}
esac