#~/.bashrc -- Set up bash environment by invoking system bashrc file
#
#  http://www.qhull.org/bash/doc/road-bash.html
#
#  Sources /etc/road-bashenv.sh, /etc/road-bashrc.sh, and ~/.bashenv
#  A local copy has precedence.
#
#  On login
#  1) /etc/profile sourced.  It may create home/$USER if needed.
#  2) .bashrc sourced (this file)
#  3) .bash_profile sourced
#
#  On a subshell
#  1) .bashrc sourced (this file)
#
#  For a script
#  1) /etc/road-script.sh may be sourced.  It sources road-bashenv.sh


#  Use .bashenv for personal settings

if [[ -r $HOME/bash/etc/road-bashrc.sh ]]; then
  source "$HOME/bash/etc/road-bashenv.sh"
  source "$HOME/bash/etc/road-bashrc.sh"
elif [[ -r /etc/road-bashrc.sh ]]; then
  source /etc/road-bashenv.sh
  source /etc/road-bashrc.sh
fi

if [[ -r $HOME/.bashenv ]]; then
  source "$HOME/.bashenv"
fi


