From d0453190d9615e0435eeea324d9728ea134eb188 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Fri, 7 Jan 2022 05:50:56 +0300 Subject: [PATCH] ref vcs status --- .subzsh/prompt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.subzsh/prompt b/.subzsh/prompt index 040ec72..0520564 100644 --- a/.subzsh/prompt +++ b/.subzsh/prompt @@ -32,14 +32,15 @@ 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}]-[%u%c]%f ' + '%F{5}(%f%s%F{5})%F{3}-%u%c-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]-[%u%c]%f ' + '%F{5}(%f%s%F{5})%F{3}-%u%c-%F{5}[%F{2}%b%F{5}]%f ' zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' -zstyle ':vcs_info:*' enable git cvs svn # or use pre_cmd, see man zshcontrib