zsh-users
 help / color / mirror / code / Atom feed
From: Miek Gieben <miek@miek.nl>
To: Zsh Users <zsh-users@zsh.org>
Subject: vcs_info
Date: Thu, 15 Sep 2011 09:41:39 +0200	[thread overview]
Message-ID: <20110915074139.GA25204@miek.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

             reply	other threads:[~2011-09-15  7:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15  7:41 Miek Gieben [this message]
2011-09-15  8:48 ` vcs_info Julien Nicoulaud
2011-09-15  9:03   ` vcs_info Miek Gieben
2011-09-15  9:15     ` vcs_info Julien Nicoulaud
2011-09-15  9:38       ` vcs_info René Neumann
2011-09-15 12:30         ` vcs_info Quabug.Yuan
2011-09-15 12:12   ` vcs_info Frank Terbeck
2011-09-15 13:01     ` vcs_info Julien Nicoulaud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110915074139.GA25204@miek.nl \
    --to=miek@miek.nl \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).