Skip to content

Instantly share code, notes, and snippets.

@psousa
Last active August 29, 2015 14:15
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 psousa/787a62a28cff2fb8ef89 to your computer and use it in GitHub Desktop.
Save psousa/787a62a28cff2fb8ef89 to your computer and use it in GitHub Desktop.
mac bash profile with color and showing git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
#got brew installed on /usr/local
PATH="/usr/local/bin:$PATH"
PS1="\[\033[0;35m\]\u@\h\[\033[0;33m\] \$(parse_git_branch) \w\[\033[00m\]: "
#installed rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
#installed grc via brew
source "`brew --prefix`/etc/grc.bashrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment