Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vcs_info
- X-seq: zsh-users 16358
- From: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: vcs_info
- Date: Thu, 15 Sep 2011 10:48:13 +0200
- 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=
- In-reply-to: <20110915074139.GA25204@miek.nl>
- 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: <20110915074139.GA25204@miek.nl>
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 <miek@xxxxxxx>
> 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
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author