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)")]\$ '

One thought on “Homebrew & git +bash_completion

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s