From 3450e20857580296cff6f78bf190f78d13040253 Mon Sep 17 00:00:00 2001 From: Dayne Broderson Date: Fri, 24 Mar 2017 00:23:12 -0800 Subject: [PATCH] adding ability to set theme as a path to specific file --- lib/appearance.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/appearance.bash b/lib/appearance.bash index 48134c98..6d0ef2ff 100644 --- a/lib/appearance.bash +++ b/lib/appearance.bash @@ -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"