From: Johannes Schindelin Date: Sun, 26 Nov 2006 14:27:07 GMT Subject: Re: git-PS1 bash prompt setting Message-ID: In-Reply-To: Hi, On Thu, 16 Nov 2006, Sean wrote: > For what it's worth i'll post a little script i've been using for quite > some time that helps a little. It's called git-PS1 and is used by > including it in your bash PS1 variable like so: > > export PS1='$(git-PS1 "[\u@\h \W]\$ ")' I actually like that very much! So much that I tried to implement this as an option to an existing builtin (I did not want to clutter the list of commands any more...). But there really is no good place to put it: most commands need a git repository, and those which do not, are inappropriate to put an option "--show-ps1" into. Except maybe repo-config. Thoughts? Ciao, Dscho