Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: VCS info (Re: Call for good plugins list)
- X-seq: zsh-users 22915
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: VCS info (Re: Call for good plugins list)
- Date: Sun, 01 Oct 2017 22:16:07 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lnWsDu RNJMNEJmPt9TMDjj/Usr+cAssnBydD2O2lUdw=; b=bGYPbUJH2ZIMeJqffXrR7v /AiRCUfhSdgyuQbxTGvqDmrKrqs7C1z4+VwS7QSOgGqA69rWfUzWGDoTv0jXUPWa UavsggepRiO+zonbTLUll7l95ro9cBi6k0NQRAWEhk1mTf9rT31rhx1C9BXjAf61 7U1zVrIyys+XQ7WiFzrzoENxTEPRQts2ShC7PNzMb6LO8Jj20Df1NEBhoUMesTjO X+mxMVBViegXWmaRx4KvJWUs8BS9GBjtQQNBpQJRBhRLVNz+f1PhpwyULUxUFBzv H9/6Fi/S0If0tse/NKEhAMxxye+KCjQJ/Y5jR6zjnifjgrD9djt1zXysyozO/YGQ ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lnWsDu RNJMNEJmPt9TMDjj/Usr+cAssnBydD2O2lUdw=; b=KMOve5G8zaC7NH8FjUl92Q LSlYEluxPCjWpU3lpNYecEwVD3Ozf7LDU/Pd9vqnj3kTjngf1mM9kwN/b+PgGNCh NylREFqBK9qoMe7SV8ST94Y5WB+DU23ok1whFs3cRLHHnrN8p68HHle1uGwf3Y5P KZNod25Qi3TStbAoOvzqbSoGoys4fVIWhcNec+JFJ54JZtvGvhBONCdfwVcUiHGW EU7mQcFcWYZdvtrJll1EpOpQporp7Ch/RcFiWpc6S+czq6U7MK/Uh8ymStx5w0Jq fjeftFhrKtiD127NUr8vXVz2K+oljHUUsdm2NE8Y4hJVINbvJB5wKp5aMpErBLpw ==
- In-reply-to: <171001145042.ZM17810@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <etPan.59d1167f.1056949b.98a8@zdharma.org> <5dfbef9f-754f-8487-a6b8-44296cba1a11@eastlink.ca> <171001115438.ZM17268@torch.brasslantern.com> <1506886188.3585120.1124265296.1C8585C6@webmail.messagingengine.com> <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author