adding ability to set theme as a path to specific file

pull/930/head
Dayne Broderson 2017-03-24 00:23:12 -08:00
parent de18a7f2e8
commit 3450e20857
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ fi
# Load the theme
if [[ $BASH_IT_THEME ]]; then
if [[ -f "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" ]]; then
if [[ -f $BASH_IT_THEME ]]; then
source $BASH_IT_THEME
elif [[ -f "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" ]]; then
source "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
else
source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"