Last active
May 9, 2016 20:55
-
-
Save jmuspratt/04b79b5ce335cfb7e1410c4d7a7af95c to your computer and use it in GitHub Desktop.
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
# Add Git to Bash and customize PS1 | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/' | |
} | |
export PS1="\n\[\e[90m\]————————————————————————————————————————————\[\e[m\]\n\w -\[\e[90m\]\$(parse_git_branch)\[\e[m\] \n$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment