# Load enabled aliases, completion, plugins
for file_type in "aliases" "completion" "plugins"
do
- if [ ! -d "${BASH}/${file_type}/enabled" ]
+ if [ ! -d "${BASH_IT}/${file_type}/enabled" ]
then
- continue
+ continue
fi
- FILES="${BASH}/${file_type}/enabled/*.bash"
+ FILES="${BASH_IT}/${file_type}/enabled/*.bash"
for config_file in $FILES
do
- source $config_file
+ if [ -e "${config_file}" ]; then
+ source $config_file
+ fi
done
done
fi
# Custom
- CUSTOM="${BASH}/custom/*.bash"
+ CUSTOM="${BASH_IT}/custom/*.bash"
for config_file in $CUSTOM
do
- source $config_file
+ if [ -e "${config_file}" ]; then
+ source $config_file
+ fi
done
+ # Load colors first so they can be use in base theme
+ source "${BASH_IT}/themes/colors.theme.bash"
+ source "${BASH_IT}/themes/base.theme.bash"
+
+ # library
+ LIB="${BASH_IT}/lib/*.bash"
+ for config_file in $LIB
+ do
+ source $config_file
+ done
unset config_file
if [[ $PROMPT ]]; then