Created
December 2, 2010 22:36
-
-
Save chrisyour/726230 to your computer and use it in GitHub Desktop.
Git Branch Status in the Command Prompt (OSX)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A minimally beautiful command prompt: | |
# user: directory (branch): | |
# Place this in ~/.bashrc | |
export PS1="\u: \W"'$(__git_ps1 " (%s)")'": " | |
# Place this is /etc/profile to ensure Terminal sources ~/.bashrc when it launches | |
[ -r $HOME/.bashrc ] && source $HOME/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment