From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 572 invoked by alias); 15 Sep 2011 08:57:07 -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: 16358 Received: (qmail 10817 invoked from network); 15 Sep 2011 08:56:54 -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,HTML_MESSAGE,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.216.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=+tz373PxqFxeYlitwFL6+7rLmqszhFLms+razpWa0xk=; b=Xojm19cTiuLsTcVt9naJhmTsuX4RsIQ6Nq+ozuBeMvbWi+rnLrt7tgPa46ZeenqTSi 5wfg/yRb+h5R7WqepHuLn9Zb9e6qZdxiAHZl4QDVhsPFijTlZnKvPCY+Kyq4i5A4ckGL ZRnyUfO3O/jmUOAWU+glUeyCTxO0CVXolhSMU= MIME-Version: 1.0 In-Reply-To: <20110915074139.GA25204@miek.nl> References: <20110915074139.GA25204@miek.nl> From: Julien Nicoulaud Date: Thu, 15 Sep 2011 10:48:13 +0200 Message-ID: Subject: Re: vcs_info To: Zsh Users Content-Type: multipart/alternative; boundary=0016364eedec1e338a04acf6f12c --0016364eedec1e338a04acf6f12c Content-Type: text/plain; charset=ISO-8859-1 Hi, It seems by default Git repos have precedence over Hg repos. You can force the order this way: zstyle ':vcs_info:*' enable hg bzr svn git I works fine for me (full setup here: https://gitorious.org/prso/dotfiles/blobs/master/zsh/conf.d/07_Prompt.sh). May be it would be better if vcs_info automatically picked the inner repo ? -- Julien 2011/9/15 Miek Gieben > 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 > precmd () { vcs_info } > PS1='%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 > tsig branch of godns > > # go to the hg repo of go itself > [miekg] ~/src/go (git)-[master]-% hg id # shows higher level > 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, > > -- > Miek > --0016364eedec1e338a04acf6f12c--