From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20509 invoked by alias); 15 Sep 2011 07:50:22 -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: 16357 Received: (qmail 21957 invoked from network); 15 Sep 2011 07:50:09 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at atoom.net does not designate permitted sender hosts) Date: Thu, 15 Sep 2011 09:41:39 +0200 From: Miek Gieben To: Zsh Users Subject: vcs_info Message-ID: <20110915074139.GA25204@miek.nl> Mail-Followup-To: Zsh Users MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline User-Agent: Vim/Mutt/Linux X-Home: http://www.miek.nl --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I just found out about vcs_info (http://eseth.org/2010/hg-in-zsh/), I played with it a little and it looks very nice. But I was wondering if the following setup is possible. I have my home directory stored in .git. And in my $HOME I have multiple other repositories (git, svn, hg, whatever). And it look like this doesn't play well with each other. autoload -Uz vcs_info =20 precmd () { vcs_info } PS1=3D'%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}%f%# ' cd ~ [miekg] ~ (git)-[master]-% cd ~/src/godns # correctly show ~ # go to the git repo of godns [miekg] ~/src/godns (git)-[tsig]-% cd ../go # correctly show ts= ig branch of godns # go to the hg repo of go itself [miekg] ~/src/go (git)-[master]-% hg id # shows higher leve= l git, not hg c934f6f5fe8b weekly/weekly.2011-09-01 Is there something I can do about this, or should this be considered a bug? grtz, --=20 Miek --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk5xrDMACgkQJYuFzziA0PZd3ACgoN1LMzLpiprgKPabXFI0bP/G DTgAniAhxbHh2IoTH4llQDy0t56G7lMI =4Mwj -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--