diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 32bffc3..e6f1ebd 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -296,7 +296,7 @@ prompt_git() { repo_path=$(git rev-parse --git-dir 2>/dev/null) 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 fi prompt_segment $BULLETTRAIN_GIT_BG $BULLETTRAIN_GIT_FG