From 64e7b1bad68c96aa60c813d07ecb8720a7a7affc Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 2 Jul 2023 21:12:37 +0200 Subject: [PATCH] zsh: truncate branch name in vcs_info prompt --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 00e4b08..7e7ece2 100644 --- a/.zshrc +++ b/.zshrc @@ -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}󰐖'