+
+ # the distinction between login and non-login shells is lame,
+ # get rid of it. note ssh shells normally its login if a command is passed
+ if ! shopt -q login_shell; then
+ if [[ -r /etc/profile ]]; then
+ source /etc/profile
+ fi
+ # note, this is not exactly the same as a login shell, because that
+ # reads ~/.bash_profile or alternative, which usually just sources
+ # this file, and we don't want to do that and cause an infinite
+ # loop.
+ fi
+ _x=$(readlink -f ${BASH_SOURCE[0]})
+ _x=${_x%/*}/brc
+ if [[ -r $_x ]]; then
+ # shellcheck source=./brc
+ source $_x
+ fi
+ # brc2 is for things i dont necessarily want on every system
+ _x=${_x%/*}/brc2
+ if [[ -r $_x ]]; then
+ # shellcheck source=./brc2
+ source $_x
+ fi