diff options
Diffstat (limited to 'home')
-rw-r--r-- | home/john/.profile | 5 | ||||
-rw-r--r-- | home/john/.shrc | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/home/john/.profile b/home/john/.profile index fea0f5c..e3025fd 100644 --- a/home/john/.profile +++ b/home/john/.profile @@ -31,11 +31,6 @@ 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. export ENV=$HOME/.shrc diff --git a/home/john/.shrc b/home/john/.shrc index 4d5fced..214911c 100644 --- a/home/john/.shrc +++ b/home/john/.shrc @@ -4,6 +4,14 @@ 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*) # interactive mode settings go here export GIT_EDITOR='vi +:"so /usr/local/share/git.exrc"' @@ -25,5 +33,8 @@ case "$-" in *i*) cd "$r" && { [ $# -eq 1 ] && return; BASH_COMMAND=$* cmdtitle 2>&-; "$@"; } } + sys() { + PATH=$SYSPATH MANPATH=$SYSMANPATH "$@" + } ;; esac |