Created
January 5, 2019 19:37
-
-
Save ardeay/380fcb5441aa0bbdada96f63348b72a6 to your computer and use it in GitHub Desktop.
Via La Terminal! Coloring Scheme
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
## Color your terminal with Mexico's colors! + git branch | |
## Add this to the bottom of your ~/.bash_profile and restart your terminal | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export TERM="xterm-color" | |
export PS1="\u\[\e[1;31m\]@\[\e[0m\]\h\[\e[0;31m\] \w\[\e[0;32m\]\$(parse_git_branch)\e[0;33m\]$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
^ Tested with MacOS 10.14.1