From e9b14ce0595b7d3c5dfe4cca58e740c73c712e59 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 14 Feb 2022 14:22:03 +0300 Subject: [PATCH] Show only action and G-flag in Git-repository --- zsh/.zsh/rc/010vcs.zsh | 5 ++--- zsh/.zsh/rc/015prompt.zsh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/zsh/.zsh/rc/010vcs.zsh b/zsh/.zsh/rc/010vcs.zsh index e34b617..0550102 100644 --- a/zsh/.zsh/rc/010vcs.zsh +++ b/zsh/.zsh/rc/010vcs.zsh @@ -1,6 +1,5 @@ autoload -Uz vcs_info zstyle ":vcs_info:*" enable git zstyle ":vcs_info:*" max-exports 1 -zstyle ":vcs_info:*" get-revision true -zstyle ":vcs_info:*" formats "%i" -zstyle ":vcs_info:*" actionformats "%a|%i" +zstyle ":vcs_info:git:*" formats "G" +zstyle ":vcs_info:git:*" actionformats "%a" diff --git a/zsh/.zsh/rc/015prompt.zsh b/zsh/.zsh/rc/015prompt.zsh index ff31125..95fbb18 100644 --- a/zsh/.zsh/rc/015prompt.zsh +++ b/zsh/.zsh/rc/015prompt.zsh @@ -3,7 +3,7 @@ setopt PROMPT_SUBST PS1="%2~ %B" PS1+='${(j::)psvar}' PS1+="%(1j.%j.)%b" -PS1+='%U${vcs_info_msg_0_[1,-32]}%u' +PS1+='%U${vcs_info_msg_0_}%u' PS1+="%(?.. %S%?%s)" PS1+='%(1S. %B${SECONDS}%b.)' PS1+='%B%F{magenta}${_VIMODE}%f%b ' -- 2.44.0