Thread (4 messages) flat view 4 messages, 2 authors, 2016-08-11

Re: git-PS1 bash prompt setting

From: Johannes Schindelin <hidden>
Date: 2016-08-11 19:33:38

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help