add zstyle vcs status
This commit is contained in:
parent
d652362dad
commit
69295b0cf4
@ -28,11 +28,15 @@ fi
|
|||||||
|
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
autoload -Uz vcs_info
|
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 }
|
precmd() { vcs_info }
|
||||||
zstyle ':vcs_info:*' actionformats \
|
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 \
|
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:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
|
||||||
|
|
||||||
zstyle ':vcs_info:*' enable git cvs svn
|
zstyle ':vcs_info:*' enable git cvs svn
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user