Skip to content

Instantly share code, notes, and snippets.

@ardeay
Created January 5, 2019 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ardeay/380fcb5441aa0bbdada96f63348b72a6 to your computer and use it in GitHub Desktop.
Save ardeay/380fcb5441aa0bbdada96f63348b72a6 to your computer and use it in GitHub Desktop.
Via La Terminal! Coloring Scheme
## 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\]$ "
@ardeay
Copy link
Author

ardeay commented Jan 5, 2019

^ Tested with MacOS 10.14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment