ohmyzsh / ohmyzsh

🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.

Home Page:https://ohmyz.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git async prompt does not appear

carlosala opened this issue · comments

Same problems as OP:

Before:

image

After:

image

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)

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 minimal theme bundled in oh-my-zsh.

@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.

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)"