mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
minor update regexp to fit to the new git status output
This commit is contained in:
parent
f378bff3af
commit
18211c7b5a
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ parse_git_dirty () {
|
||||||
echo -n "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
echo -n "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(echo ${gitstat} | grep -c "^\(# Untracked files:\|# Changed but not updated:\)$") > 0 ]]; then
|
if [[ $(echo ${gitstat} | grep -c "^\(# Untracked files:\|# Changed but not updated:\|# Changes not staged for commit:\)$") > 0 ]]; then
|
||||||
echo -n "$ZSH_THEME_GIT_PROMPT_UNTRACKED"
|
echo -n "$ZSH_THEME_GIT_PROMPT_UNTRACKED"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue