From 1a885b957f307fd1e38b0f2e29131942db07b083 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Mon, 25 Nov 2013 18:06:33 -0600 Subject: [PATCH] Add a fallback in case Git isn't being used (*shutters*) --- themes/powerline/powerline.theme.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/powerline/powerline.theme.bash b/themes/powerline/powerline.theme.bash index ab179aa..518f054 100644 --- a/themes/powerline/powerline.theme.bash +++ b/themes/powerline/powerline.theme.bash @@ -69,6 +69,8 @@ function powerline_scm_prompt { SCM_PROMPT="$(set_rgb_color ${SCM_THEME_PROMPT_STAGED_COLOR} ${SCM_THEME_PROMPT_COLOR})" elif [ -n "$(echo $git_status_output | grep 'Untracked files')" ]; then SCM_PROMPT="$(set_rgb_color ${SCM_THEME_PROMPT_UNTRACKED_COLOR} ${SCM_THEME_PROMPT_COLOR})" + else + SCM_PROMPT="$(set_rgb_color ${SCM_THEME_PROMPT_DIRTY_COLOR} ${SCM_THEME_PROMPT_COLOR})" fi else SCM_PROMPT="$(set_rgb_color ${SCM_THEME_PROMPT_CLEAN_COLOR} ${SCM_THEME_PROMPT_COLOR})" -- 2.17.1