mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
don't echo without result
This commit is contained in:
parent
cb34192422
commit
d2da8cb805
1 changed files with 3 additions and 1 deletions
|
|
@ -66,7 +66,9 @@ git_prompt_status() {
|
|||
if echo "$INDEX" | grep '^UU ' &> /dev/null; then
|
||||
STATUS="$ZSH_THEME_GIT_PROMPT_UNMERGED$STATUS"
|
||||
fi
|
||||
echo $STATUS
|
||||
if [ "$STATUS" != "" ];then
|
||||
echo $STATUS
|
||||
fi
|
||||
}
|
||||
|
||||
#compare the provided version of git to the version installed and on path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue