zsh-users
 help / color / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: VCS info (Re: Call for good plugins list)
Date: Sun, 01 Oct 2017 22:16:07 +0000
Message-ID: <1506896167.291655.1124363912.1C0A821D@webmail.messagingengine.com> (raw)
In-Reply-To: <171001145042.ZM17810@torch.brasslantern.com>

Bart Schaefer wrote on Sun, 01 Oct 2017 14:50 -0700:
> 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

I don't use promptsubst either:

_precmd_vcs_info () {
	vcs_info
	[[ -n ${vcs_info_msg_0_} ]] && {
		print
		print -Plr -- ${vcs_info_msg_0_} ${vcs_info_msg_1_}
	}
}

> I did borrow somebody's (yours?) +vi-git-post-backend-updown hook, but

I posted it once, but it had been added to vcs_info-examples before then.


  reply index

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       ` VCS info (Re: Call for good plugins list) Bart Schaefer
2017-10-01 22:16         ` Daniel Shahaf [this message]
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=1506896167.291655.1124363912.1C0A821D@webmail.messagingengine.com \
    --to=d.s@daniel.shahaf.name \
    --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

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git