mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
fix up the git prompt when it's a fresh repo
This commit is contained in:
parent
0a3611c572
commit
ba0e90d887
2 changed files with 6 additions and 8 deletions
|
|
@ -120,13 +120,12 @@ update__GIT_PROMPT_INFO ()
|
|||
|
||||
local _prompt="$b$r$i$s$p"
|
||||
# add ( ) around _prompt:
|
||||
if [ "$f" = 'yes' ]; then
|
||||
_prompt="($_prompt)"
|
||||
elif [ "$u" = "yes" ]; then
|
||||
if [ "$u" = "yes" ]; then
|
||||
_prompt="$_Cu_dirty_($_prompt$_Cu_dirty_)"
|
||||
elif [ "$u" = "no" ]; then
|
||||
_prompt="$_Cu_clean_($_prompt$_Cu_clean_)"
|
||||
else
|
||||
_prompt="($_prompt$)"
|
||||
fi
|
||||
|
||||
__GIT_PROMPT_INFO="$R$_prompt$R"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue