fix up the git prompt when it's a fresh repo

This commit is contained in:
Ashley Dev 2011-06-02 14:09:05 -07:00
commit acc1023bfd
2 changed files with 4 additions and 8 deletions

View file

@ -111,9 +111,7 @@ 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_)"