Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
VCS info (Re: Call for good plugins list)
On Oct 1, 7:29pm, Daniel Shahaf wrote:
}
} I'm curious as to how you do use vcs_info.
The main thing is that I despise prompt_subst, so:
autoload -Uz add-zsh-hook
autoload -Uz vcs_info
vcs-info-v() { vcs_info; RPS1="$vcs_info_msg_0_" }
add-zsh-hook precmd vcs-info-v
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 '
zstyle ':vcs_info:*' formats \
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
This is in combination with transient_rprompt so the VCS stuff vanishes
while a command is running.
I did borrow somebody's (yours?) +vi-git-post-backend-updown hook, but
had to hack it because some of my remote terminals don't do UTF-8.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author