From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: VCS info (Re: Call for good plugins list)
Date: Sun, 1 Oct 2017 14:50:42 -0700 [thread overview]
Message-ID: <171001145042.ZM17810@torch.brasslantern.com> (raw)
In-Reply-To: <1506886188.3585120.1124265296.1C8585C6@webmail.messagingengine.com>
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.
next prev parent reply other threads:[~2017-10-01 21:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-01 16:23 Call for good plugins list Sebastian Gniazdowski
2017-10-01 16:41 ` Ray Andrews
2017-10-01 18:54 ` Bart Schaefer
2017-10-01 19:29 ` Daniel Shahaf
2017-10-01 21:50 ` Bart Schaefer [this message]
2017-10-01 22:16 ` VCS info (Re: Call for good plugins list) Daniel Shahaf
2020-02-11 9:38 ` What's wrong with PROMPT_SUBST? (Was: VCS info (Re: Call for good plugins list)) Lawrence Velázquez
2020-02-12 5:23 ` Bart Schaefer
2020-02-12 7:17 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=171001145042.ZM17810@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).