Make the branch icon only show when there is a branch
This commit is contained in:
parent
4e1e5d7b43
commit
8f30fe328d
1 changed files with 2 additions and 2 deletions
|
@ -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~ %(!.#.$) '
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue