Skip to content

Instantly share code, notes, and snippets.

@magnusbae
Last active December 29, 2015 15:29
Show Gist options
  • Save magnusbae/7691291 to your computer and use it in GitHub Desktop.
Save magnusbae/7691291 to your computer and use it in GitHub Desktop.
My mac bash profile
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PATH="$HOME/bin:$PATH"
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[31m\]\$(parse_git_branch)\[\033[00m\]\n$ "
source ~/bin/git-completion.bash
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment