From: Sergey Matveev Date: Mon, 14 Feb 2022 11:22:03 +0000 (+0300) Subject: Show only action and G-flag in Git-repository X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=e9b14ce0595b7d3c5dfe4cca58e740c73c712e59 Show only action and G-flag in Git-repository --- 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 '