Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: vcs_info


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:

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