Add a fallback in case Git isn't being used (*shutters*)
authorTravis Swicegood <development@domain51.com>
Tue, 26 Nov 2013 00:06:33 +0000 (18:06 -0600)
committerTravis Swicegood <development@domain51.com>
Tue, 26 Nov 2013 00:06:33 +0000 (18:06 -0600)
themes/powerline/powerline.theme.bash

index ab179aa..518f054 100644 (file)
@@ -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})"