From 69295b0cf4d52e83c69d62719c4a3a84b87bbcd4 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Fri, 7 Jan 2022 05:38:19 +0300 Subject: [PATCH] add zstyle vcs status --- .subzsh/prompt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.subzsh/prompt b/.subzsh/prompt index 7da185d..040ec72 100644 --- a/.subzsh/prompt +++ b/.subzsh/prompt @@ -28,11 +28,15 @@ fi setopt prompt_subst autoload -Uz vcs_info +zstyle ':vcs_info:*' enable git cvs svn +zstyle ':vcs_info:*' check-for-changes true +zstyle ':vcs_info:*' unstagedstr '!' +zstyle ':vcs_info:*' stagedstr '+' precmd() { vcs_info } zstyle ':vcs_info:*' actionformats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]-[%u%c]%f ' zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]-[%u%c]%f ' zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' zstyle ':vcs_info:*' enable git cvs svn