Re: current HEAD in bash prompt
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Nov 18, 2005, 14:57 UTC
- Message-ID
- <81b0412b0511180657h6c5a66f8y4a41f3fa20a8b238@mail.gmail.com>
- In-Reply-To
- <9C44605A-4F0F-42FA-A8ED-A4F7EFA24C32@hawaga.org.uk>
On 11/17/05, Ben Clifford <benc@hawaga.org.uk> wrote:
Show 6 quoted lines
> 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).