Homebrew & git +bash_completion

Install Homebrew

Full install instructions are available here: https://github.com/mxcl/homebrew/wiki/installation

ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"

Install Git

brew install git

Enable Bash Completion

cp /usr/local/etc/bash_completion.d/git-completion.bash ~/.git-completion.sh

Add the following to ~/.profile

source ~/.git-completion.sh
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
Advertisements