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\...@\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 _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion