Allow custom themes to be in $BASH_IT/custom/themes

pull/616/head
Don Reilly 2015-11-24 15:55:06 -06:00
parent b487a337ef
commit d589f95477
1 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,15 @@ export GREP_COLOR='1;33'
# colored ls # colored ls
export LSCOLORS='Gxfxcxdxdxegedabagacad' export LSCOLORS='Gxfxcxdxdxegedabagacad'
if [[ -z "$CUSTOM_THEME_DIR" ]]; then
CUSTOM_THEME_DIR="${BASH_IT}/custom/themes"
fi
# Load the theme # Load the theme
if [[ $BASH_IT_THEME ]]; then if [[ $BASH_IT_THEME ]]; then
if [[ -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" source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
fi fi
fi