]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Show only action and G-flag in Git-repository
authorSergey Matveev <stargrave@stargrave.org>
Mon, 14 Feb 2022 11:22:03 +0000 (14:22 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 14 Feb 2022 11:22:03 +0000 (14:22 +0300)
zsh/.zsh/rc/010vcs.zsh
zsh/.zsh/rc/015prompt.zsh

index e34b617724074cfb72f7d082a838503bc20ad499..05501023935151f4a5951c62390a8fa927e068d4 100644 (file)
@@ -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"
index ff311252620c21c3b9b77db51188145b086b3e6a..95fbb18e40bbdcf2394368e32d89aa0441cc2673 100644 (file)
@@ -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 '