[Numpy-discussion] Development workflow

Matthew Brett matthew.brett@gmail....
Tue Oct 12 00:16:05 CDT 2010


Hi,

> I find having the branch displayed on the command line helpful in avoiding
> mishaps, so I have the following in my .bashrc
>
> export PS1='\[\033[1;31m\]\$\[\033[0m\]\u@\h \W$(__git_ps1 " (%s)")\\$ '
>
> The \W$(__git_ps1 " (%s)") bit is the important part.

Yes, that one's a lifesaver.  It's part of the truly excellent
git-completion bash utilities too:

http://blog.strug.de/2010/08/how-to-add-git-completion-to-your-terminal/

See you,

Matthew


More information about the NumPy-Discussion mailing list