Merge remote-tracking branch 'jfsiii/master'

Conflicts:
	bash_it.sh
This commit is contained in:
Travis Swicegood
2011-10-29 18:37:31 -05:00
5 changed files with 117 additions and 84 deletions

View File

@@ -4,29 +4,17 @@
# Reload Library
alias reload='source ~/.bash_profile'
# Load the framework
# Load colors first so they can be use in base theme
source "${BASH}/themes/colors.theme.bash"
source "${BASH}/themes/base.theme.bash"
# Library
LIB="${BASH}/lib/*.bash"
for config_file in $LIB
do
if [ -e "${config_file}" ]; then
source $config_file
fi
done
# Only set $BASH_IT if it's not already set
[ -z "$BASH_IT" ] && export BASH_IT=$HOME/.bash_it
# 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
if [ -e "${config_file}" ]; then
@@ -36,13 +24,13 @@ do
done
# Load any custom aliases that the user has added
if [ -e "${BASH}/aliases/custom.aliases.bash" ]
if [ -e "${BASH_IT}/aliases/custom.aliases.bash" ]
then
source "${BASH}/aliases/custom.aliases.bash"
source "${BASH_IT}/aliases/custom.aliases.bash"
fi
# Custom
CUSTOM="${BASH}/custom/*.bash"
CUSTOM="${BASH_IT}/custom/*.bash"
for config_file in $CUSTOM
do
if [ -e "${config_file}" ]; then
@@ -50,6 +38,16 @@ do
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