mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Show deleted files in git status
This commit is contained in:
parent
aee34dff0a
commit
ee1fcc50bd
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue