New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git async prompt does not appear #12328
Comments
I see, your theme uses a custom function print git information. We didn't take into account this situation. It's reproducible as well with |
@mcornella we need to find a new way of discovering that it's indeed being used. Maybe with a fd or something like that? |
#12327 reports exactly the same regression |
FYI: The third-party plugin 'bullet-train' is also in the same problem. |
Encounter the same issue for bullet-train theme. There is a temporary work around for this. # replace this line
BULLETTRAIN_GIT_PROMPT_CMD="\$(git_prompt_info)"
# to
BULLETTRAIN_GIT_PROMPT_CMD="\$(_omz_git_prompt_info)" Well this temporary fix only serves the basic usage, informations like status tracking with remote branch is not available. |
For users using the
|
I have the same problem with bullet-train, but the workaround is helping for the meantime! Thx |
I have the same issue with the pygmalion theme, but it seems the workaround (replacing |
I'm hitting something similar, and I believe related. I updated My standard config, using a custom theme which relies on If I switch Similarly, I can use the zstyle ':omz:alpha:lib:git' async-prompt no |
Hi folks! This is going to be the easiest temporary fix while we figure out a cleaner transition path for themes dependent on the current functions. Setting the code below in your zstyle ':omz:alpha:lib:git' async-prompt no https://github.com/ohmyzsh/ohmyzsh?tab=readme-ov-file#disable-async-git-prompt Keep an eye on this issue for updates on improvements! |
ohmyzsh/ohmyzsh#12328 Signed-off-by: Jaewoong Lee <230@fumire.moe>
Unfortunately doesn't work for me 😞 |
Did you put this line before the |
Also you need to reload your shell 😊 |
Ah good hint, now it works 🙏 |
Yes of course, I did it. Thank you 😀 |
Aparentemente apos uma atualizacao do oh-my-zsh as informacoes de git exibidas no prompt dos temas passou a nao funcionar. Nesse issue abaixo no repositorio eh mostrado um workaround ohmyzsh/ohmyzsh#12328
Hello, So I played dumb and added that after omz is loaded in my zshrc : And it works ! Now I can see the git prompt appear async (slightly after the rest). Maybe it is a similar issue noted above. So it is probably the detection mechanism that should be changed. |
That needs to be put in your |
Same problems as OP:
Before:
After:
theme: https://github.com/sobolevn/sobole-zsh-theme
zsh version: 5.9 (x86_64-debian-linux-gnu)
git version: 2.39.2
Debian GNU/Linux 12
Originally posted by @hwalinga in #12267 (comment)
The text was updated successfully, but these errors were encountered: