Re: git-PS1 bash prompt setting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]