Skip to content
Browse files

Merge pull request #84 from jpschewe/master

Fixes #83
  • Loading branch information...
2 parents 8c98ddc + 7d18ccc commit ea131c879d9b7726ac4fb2f15e4a0eaace15b720 @tswicegood tswicegood committed Oct 9, 2011
Showing with 9 additions and 3 deletions.
  1. +9 −3 bash_it.sh
View
12 bash_it.sh
@@ -14,7 +14,9 @@ source "${BASH}/themes/base.theme.bash"
LIB="${BASH}/lib/*.bash"
for config_file in $LIB
do
- source $config_file
+ if [ -e "${config_file}" ]; then
+ source $config_file
+ fi
done
# Load enabled aliases, completion, plugins
@@ -27,7 +29,9 @@ do
FILES="${BASH}/${file_type}/enabled/*.bash"
for config_file in $FILES
do
- source $config_file
+ if [ -e "${config_file}" ]; then
+ source $config_file
+ fi
done
done
@@ -41,7 +45,9 @@ fi
CUSTOM="${BASH}/custom/*.bash"
for config_file in $CUSTOM
do
- source $config_file
+ if [ -e "${config_file}" ]; then
+ source $config_file
+ fi
done

0 comments on commit ea131c8

Please sign in to comment.
Something went wrong with that request. Please try again.