mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
git_prompt_info didn't account for empty gitstat case.
Problem was only noticable with non-empty $ZSH_THEME_GIT_PROMPT_CLEAN
This commit is contained in:
parent
f0d9edcbb9
commit
db2302a59c
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ parse_git_dirty () {
|
|||
echo -n "$ZSH_THEME_GIT_PROMPT_UNTRACKED"
|
||||
fi
|
||||
|
||||
if [[ $(echo ${gitstat} | wc -l | tr -d ' ') == 0 ]]; then
|
||||
if [[ $(echo ${gitstat} | grep -v '^$' | wc -l | tr -d ' ') == 0 ]]; then
|
||||
echo -n "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue