I use a personal oh-my-zsh theme which includes git status. Recently the git status part of my prompt stopped working – no error messages, it just vanished. I’m not sure what I broke.
I found the code for the git_prompt_info
and git_prompt_status
functions used to display this here in the ohmyzsh repo, and determined that something about the async versions of these is broken. I have not successfully tracked down why; _OMZ_ASYNC_OUTPUT
is empty, and there might be a clue here in async_prompt.zsh. But for now, I’ve worked around this by pushing the following line into my ~/.zshrc
file.
# Switch to synchronous git status
zstyle ':omz:alpha:lib:git' async-prompt false;
It will probably slow down my prompt a bit, but it seems snappy enough and got things working again for now.