From 7cf0aebf5446832b0aebe6540f4ef98bd92ad290 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Wed, 1 May 2024 23:29:02 -0400 Subject: [PATCH] Fix branch not appearing in recent oh-my-zsh versions --- themes/gentoo-wilder.zsh-theme | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/gentoo-wilder.zsh-theme b/themes/gentoo-wilder.zsh-theme index b5a3ac0a0..3e61b3730 100644 --- a/themes/gentoo-wilder.zsh-theme +++ b/themes/gentoo-wilder.zsh-theme @@ -64,3 +64,9 @@ ZSH_THEME_GIT_COMMITS_AHEAD_PREFIX="%{\033[0;36m%} " ZSH_THEME_GIT_COMMITS_AHEAD_SUFFIX="↑%{$fg_bold[blue]%}" ZSH_THEME_GIT_COMMITS_BEHIND_PREFIX="%{\033[0;36m%} " ZSH_THEME_GIT_COMMITS_BEHIND_SUFFIX="↓%{$fg_bold[blue]%}" + +# This is needed to have the async branch prompt working properly. +# the reason why it does not work out of the box is that we use the +# wrapper git_stuff in our prompt instead of the plain git_prompt_info. + +_omz_register_handler _omz_git_prompt_info