Make the branch icon only show when there is a branch

This commit is contained in:
Jonny Barnes 2024-08-23 14:26:53 +01:00
parent 4e1e5d7b43
commit 8f30fe328d
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -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~ %(!.#.$) '