This commit is contained in:
KVoll
2015-12-03 15:29:04 -06:00
parent 4780c85ad8
commit 91e37588a6

View File

@@ -296,7 +296,7 @@ prompt_git() {
repo_path=$(git rev-parse --git-dir 2>/dev/null) repo_path=$(git rev-parse --git-dir 2>/dev/null)
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
if [[ $BULLETTRAIN_GIT_COLORIZE_DIRTY == true && $(git status --porcelain --ignore-submodules) ]]; then if [[ $BULLETTRAIN_GIT_COLORIZE_DIRTY == true && -n $(git status --porcelain --ignore-submodules) ]]; then
BULLETTRAIN_GIT_BG=$BULLETTRAIN_GIT_COLORIZE_DIRTY_COLOR BULLETTRAIN_GIT_BG=$BULLETTRAIN_GIT_COLORIZE_DIRTY_COLOR
fi fi
prompt_segment $BULLETTRAIN_GIT_BG $BULLETTRAIN_GIT_FG prompt_segment $BULLETTRAIN_GIT_BG $BULLETTRAIN_GIT_FG