ChesterYue / ohmyzsh-theme-passion

An oh-my-zsh theme.
MIT License
294 stars 135 forks source link

The current git branch not showing up. #24

Closed teukureynld closed 3 months ago

teukureynld commented 4 months ago

image

After i installed of course with the step at the marksdown... in a few minutes there is no curent git branch name, what should i do to fix this?

RabbitKevin commented 4 months ago

same issue. linux: Amazon Linux 2 zsh: zsh 5.9 (x86_64-pc-linux-gnu) oh-my-zsh: bf713e2

short solution: I rollback oh-my-zsh to 3e05bef (the one works well in my laptop) and it's working.

chalo2000 commented 4 months ago

This seems to be the commit that caused the issue (checking out into the commit just before fixes the issue)

daronspence commented 4 months ago

I'm seeing this as well. Would be cool if it was fixed in the theme directly! I assume it's a setting in the theme itself...

daronspence commented 4 months ago

I found some more info in https://github.com/ohmyzsh/ohmyzsh/issues/12328

You can "fix" the prompt by modifying the theme thusly:

function update_git_status() {
    # GIT_STATUS=$(git_prompt_info);
    GIT_STATUS=$(_omz_git_prompt_info);
}
teukureynld commented 4 months ago

Thanks for the help mr daron.