From: John Schulz Date: Thu, 27 Oct 2011 23:29:34 +0000 (-0400) Subject: Custom themes should be loaded *after* the base theme. X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=7483c6dac351f836bd574c9cdff4a23df7cd507f;p=common%2Fbash_it.git Custom themes should be loaded *after* the base theme. --- diff --git a/bash_it.sh b/bash_it.sh index 4ee8f2d..fd87248 100644 --- a/bash_it.sh +++ b/bash_it.sh @@ -4,19 +4,6 @@ # Reload Library alias reload='source ~/.bash_profile' -# Load the framework - -# 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 - # Load enabled aliases, completion, plugins for file_type in "aliases" "completion" "plugins" do @@ -44,6 +31,17 @@ do source $config_file 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 +[ -z "$BASH_IT" ] && export BASH_IT=$HOME/.bash_it +LIB="${BASH_IT}/lib/*.bash" +for config_file in $LIB +do + source $config_file +done unset config_file if [[ $PROMPT ]]; then