Skip to content

Instantly share code, notes, and snippets.

@michal
Created July 7, 2011 19:37
Show Gist options
  • Select an option

  • Save michal/1070346 to your computer and use it in GitHub Desktop.

Select an option

Save michal/1070346 to your computer and use it in GitHub Desktop.
My bash profile
PATH=/usr/local/bin:/usr/local/sbin:$PATH
source `brew --prefix`/Library/Contributions/brew_bash_completion.sh
export EDITOR=/usr/local/bin/mate
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
PS1="\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$(parse_git_branch) "
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment