Skip to content

Instantly share code, notes, and snippets.

@deeTEEcee
Created November 25, 2015 17:56
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 deeTEEcee/ad04b356b4a7feefab8e to your computer and use it in GitHub Desktop.
Save deeTEEcee/ad04b356b4a7feefab8e to your computer and use it in GitHub Desktop.
bash_profile essentials (OSX)
export EDITOR=subl
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment