Re:Command Line Feedback from RVM and Git
by telemachos on Tuesday August 02, 2011 @01:43PM
(#2837976)
I'm currently using[1] a PS1 that shows branch name, whether any files in the repo need to be staged or committed and whether the repo is behind or ahead of the remote. (Credit to Adam Vandenberg[2] and Brian Carper[3] for whatever good ideas it contains.)
Here's what it looks like: http://cl.ly/8y50
[1] https://github.com/telemachus/dotfiles/blob/master/bashrc
[2] https://github.com/adamv/dotfiles/blob/master/bashrc
[3] http://briancarper.net/blog/570/git-info-in-your-zsh-prompt