4 ms·
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
by telemachos 15y ago
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 http://cl.ly/8y50
[1] https://github.com/telemachus/dotfiles/blob/master/bashrc https://github.com/telemachus/dotfiles/blob/master/bashrc
[2] https://github.com/adamv/dotfiles/blob/master/bashrc https://github.com/adamv/dotfiles/blob/master/bashrc
[3] http://briancarper.net/blog/570/git-info-in-your-zsh-prompt http://briancarper.net/blog/570/git-info-in-your-zsh-prompt