zsh: truncate branch name in vcs_info prompt

This commit is contained in:
Daniel Lundin 2023-07-02 21:12:37 +02:00
parent 1ba2eef66b
commit 64e7b1bad6

2
.zshrc
View file

@ -200,7 +200,7 @@ chpwd_functions+=vcs_info
precmd_functions+=vcs_info
zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:git:*' formats '%F{#559955} %b%u%c%f '
zstyle ':vcs_info:git:*' formats '%F{#559955} %1.25b%u%c%f '
zstyle ':vcs_info:*' unstagedstr ' %F{#ff0}󰦒'
zstyle ':vcs_info:*' stagedstr ' %F{#9ff}󰐖'