mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-20 04:40:08 +00:00
Closer to original status command, using SUBMODULE SYNTAX
This commit is contained in:
parent
2e213b9b8f
commit
171a76a3c4
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ parse_git_dirty() {
|
|||
if [[ $POST_1_7_2_GIT -gt 0 ]]; then
|
||||
SUBMODULE_SYNTAX="--ignore-submodules=dirty"
|
||||
fi
|
||||
if [[ -n $(git diff --ignore-submodules HEAD 2> /dev/null) ]]; then
|
||||
if [[ -n $(git diff ${SUBMODULE_SYNTAX} 2> /dev/null) ]]; then
|
||||
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
||||
else
|
||||
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
||||
|
|
Loading…
Reference in a new issue