Permalink
Browse files

`$BASH_IT` should be conditionally defined before use.

7483c6d moved one line too many.
  • Loading branch information...
1 parent 7483c6d commit e3194237e905f80231873fd6b1b778b11409055c @jfsiii jfsiii committed Oct 28, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 bash_it.sh
View
@@ -4,6 +4,9 @@
# Reload Library
alias reload='source ~/.bash_profile'
+# 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
@@ -36,7 +39,6 @@ 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

0 comments on commit e319423

Please sign in to comment.