Last active
August 29, 2015 13:56
-
-
Save jrmontag/9201367 to your computer and use it in GitHub Desktop.
git branch in prompt (minimal working example)
This file contains hidden or 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
# (ubuntu) | |
# add to end of .bashrc : | |
export PS1="\$(__git_ps1) "$PS1 | |
# gives e.g. (when in a repo): | |
(master) user@host:~$ | |
# more info: http://stackoverflow.com/questions/15883416/adding-git-branch-on-the-bash-command-prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment