From ee1fcc50bdfc51d86a2fcf21687fb90459f2b60a Mon Sep 17 00:00:00 2001 From: Luke Randall Date: Thu, 16 Sep 2010 17:53:35 +0200 Subject: [PATCH] Show deleted files in git status --- lib/git.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git.zsh b/lib/git.zsh index e4fe4852e..12a67f6ec 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -13,11 +13,11 @@ parse_git_dirty () { echo -n "$ZSH_THEME_GIT_PROMPT_UNCLEAN_SPACER" fi - if [[ $(echo ${gitstat} | grep -c "^.M") > 0 ]]; then + if [[ $(echo ${gitstat} | grep -c "^.[MD]") > 0 ]]; then echo -n "$ZSH_THEME_GIT_PROMPT_DIRTY" fi - if [[ $(echo ${gitstat} | grep -c "^[MA]") > 0 ]]; then + if [[ $(echo ${gitstat} | grep -c "^[MAD]") > 0 ]]; then echo -n "$ZSH_THEME_GIT_PROMPT_STAGED" fi