Re: current HEAD in bash prompt

From: Alex Riesen <>
Date: 2005-11-19 01:57:48
On 11/17/05, Ben Clifford <> wrote:
> After getting a bit confused when having too many branches, and for
> people who don't mind extra forks and like too much info in their
> prompt, I've recently started using this:
> export PS1='!\! [\j] \u@\h:\w$(output-git-head-or-blank)\$ '

I did almost the same, but in .c (attached).

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Received on Sat Nov 19 01:58:55 2005

This archive was generated by hypermail 2.1.8 : 2005-11-19 01:59:00 EST