Skip to content

Bradley C. Buchanan

Menu
  • Software Engineer
  • Manager
  • Game Designer
  • Vita
Menu

ZSH git prompt workaround

2024-04-23

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.

2 thoughts on “ZSH git prompt workaround”

  1. Phil says:
    2025-02-14 at 4:48 am

    just had this same thing happen, with the builtin theme, minimal. thanks for posting—helped a lot!

  2. Phil says:
    2025-02-14 at 5:04 am

    also might be helpful to those on this page — this was caused by a regression in oh-my-zsh. details here: https://github.com/ohmyzsh/ohmyzsh/issues/12328

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Work

  • Back to School with Discord’s Whiteboard

    2 years ago
  • Discord Activities are on Mobile

    2 years ago
  • Good Enough Golfers update

    3 years ago
  • Leaving Code.org

    5 years ago
  • Memorable feedback

    7 years ago

Play

  • Altered: Trial By Frost Prerelease

    4 months ago
  • Marginalia 2023-12-31

    1 year ago
  • IFComp 29 is open

    2 years ago
  • Discord Activities are on Mobile

    2 years ago
  • Esther’s: IFDB Awards

    2 years ago
RSS Feed

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 Bradley C. Buchanan | Powered by Minimalist Blog WordPress Theme