mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
switched to git.zsh from original
This commit is contained in:
parent
7f2d8f61c7
commit
db8efc9a7b
1 changed files with 0 additions and 8 deletions
|
|
@ -11,14 +11,6 @@ parse_git_dirty() {
|
||||||
else
|
else
|
||||||
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(echo ${gitstat} | grep -c "^\(# Untracked files:\|# Changed but not updated:\)$") > 0 ]]; then
|
|
||||||
echo -n "$ZSH_THEME_GIT_PROMPT_UNTRACKED"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $(echo ${gitstat} | grep -v '^$' | wc -l | tr -d ' ') == 0 ]]; then
|
|
||||||
echo -n "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Checks if there are commits ahead from remote
|
# Checks if there are commits ahead from remote
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue