From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10388 invoked by alias); 19 Oct 2011 18:38:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16526 Received: (qmail 14147 invoked from network); 19 Oct 2011 18:37:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=rexylp1gIKP3v3xUVuL1sXkZ+dqGvByeyBG3wruQ5zQ=; b=boIbhCaemg1xE71v3pi9qhybyVyzXbYAHixSUSkxit+67THDHBrupfQOfJnGCKixVG td/PSfEy9fwhmFYQJ/CkoQwtL6GxQn/ZYHd9KNv1NIi7YxMpA0fuSwihtoNpL7BKRk4W YbobwjRKtL2ntKkEUigR5PkCPuv3vX7vbOQWU= Date: Wed, 19 Oct 2011 11:37:50 -0700 From: "Suraj N. Kurapati" To: Frank Terbeck Cc: zsh-users@zsh.org Subject: Re: Misc/vcs_info-examples - "git-st" snippet broken? Message-ID: <20111019113750.3c96d1fa@gmail.com> In-Reply-To: <87pqhshmmw.fsf@ft.bewatermyfriend.org> References: <20111019034402.4d73538a@gmail.com> <87r529i5nj.fsf@ft.bewatermyfriend.org> <20111019110812.76266dae@gmail.com> <87pqhshmmw.fsf@ft.bewatermyfriend.org> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/qr+P5YcHem2a3ZpuqLRU1Y7"; protocol="application/pgp-signature" --Sig_/qr+P5YcHem2a3ZpuqLRU1Y7 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed 19 Oct 2011 08:17:11 PM PDT, Frank Terbeck wrote: > Suraj N. Kurapati wrote: > > does hook registration really override? > > > > .zshrc: > > > > zstyle ':vcs_info:git*+set-message:*' hooks git-untracked > > +vi-git-untracked(){} > > > > zstyle ':vcs_info:git*+set-message:*' hooks git-st function > > +vi-git-st() {} > > > > zstyle ':vcs_info:git*+set-message:*' hooks git-remotebranch > > function +vi-git-remotebranch() {} > > > > zstyle ':vcs_info:git*+set-message:*' hooks foobar function > > +vi-foobar() {echo 'foobar'} > > `hooks' is a list style. I don't think there is a way to add items > to a list style in a given context, without looking it up first... > > So, try: > > zstyle ':vcs_info:git*+set-message:*' hooks git-untracked git-st \ > git-remotebranch foobar Yay! That solved it, thanks. :) Please add this caveat to the Misc/vcs_info-examples file because I just copied and pasted from there expecting things to "Just Work". --=20 Computer programmers do it byte by byte. --Sig_/qr+P5YcHem2a3ZpuqLRU1Y7 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6fGP4ACgkQmV9O7RYnKMdMcwCgiDhfad5aQi+Wk8sMJJn9c9Et IlQAoLIqXrHwljsAA19c1T2L59JjQPf+ =/0bG -----END PGP SIGNATURE----- --Sig_/qr+P5YcHem2a3ZpuqLRU1Y7--