Welcome to zerokspot.com, the personal website of Horst Gutmann.

Archive for ps1

  • Git and Mercurial branchname in PS1

    If you're working with version control systems like Mercurial, Git or SVN (if you must) and there with multiple branches, it's sometimes really hard to keep track of what branch you're currently in. There are a couple of utilities out there that help you integrate that information in your shell's prompt, but most of them are limited to just one versioning system. Gred Ward's vcprompt is different in this regard since it supports Git, Mercurial and some other system I don't want to name here ;-) And it is really fast :D

    [via www.mahner.org]

    2009/05/14 at 10:18:34

    comments

  • Git branches and PS1

    With the release of Mercurial 1.1 yesterday and me more and more getting into it again I complained on IRC that as much as I love git's named branches, they make it kind of easy to just do something to the wrong branch. If you have a branch per folder it's kind of more obvious in what branch you're operating all the time, in my opinion.

    But there is a simple solution for this: Martin today posted a quick guide on how to get the current branch name into your shell's $PS1.

    Read more about "Git branches and PS1" ...

    2008/12/04 at 16:20:45

    comments

See all tags used for weblog posts