From 8f30fe328dd6c7ae2bf06c5223cf5b7a57bcbd47 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 23 Aug 2024 14:26:53 +0100 Subject: [PATCH] Make the branch icon only show when there is a branch --- zshrc.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc.zsh b/zshrc.zsh index dbd344a..f32e362 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -133,7 +133,7 @@ add-zsh-hook precmd vcs_info # Style the vcs_info message zstyle ':vcs_info:*' enable git -zstyle ':vcs_info:git*' formats '%b%u%c' +zstyle ':vcs_info:git*' formats '⎇ %b%u%c' # Format when the repo is in an action (merge, rebase, etc) zstyle ':vcs_info:git*' actionformats '%F{14}⏱ %*%f' zstyle ':vcs_info:git*' unstagedstr '*' @@ -143,7 +143,7 @@ zstyle ':vcs_info:git*' stagedstr '+' zstyle ':vcs_info:*:*' check-for-changes true # Set the right prompt to the vcs_info message -RPROMPT='%F{8}⎇ ${vcs_info_msg_0_}' +RPROMPT='%F{8}${vcs_info_msg_0_}' PROMPT='%(?.%F{blue}⏺.%F{red}⏺)%f %2~ %(!.#.$) '