From: Travis Swicegood Date: Tue, 26 Nov 2013 00:06:33 +0000 (-0600) Subject: Add a fallback in case Git isn't being used (*shutters*) X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=1a885b957f307fd1e38b0f2e29131942db07b083;p=common%2Fbash_it.git Add a fallback in case Git isn't being used (*shutters*) --- 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})"