1 # Set up _base, _self first
3 # Keep track of which config set is loaded, to avoid loading a config set more than once
4 if [ -z "${__BASH_CONFIG_LOADED}" ] || echo "${__BASH_CONFIG_LOADED}" | grep -qv " ${_self} "
6 __BASH_CONFIG_LOADED="${__BASH_CONFIG_LOADED} ${_self} "
9 _i() { [[ $- == *i* ]]; return $?; }
11 # Include all subfiles, in lexicographical order
12 eval $(find "${_base}/${_self}.d/" -type f | sort | sed -e 's/^/source /; s/$/;/')