Skip to content

Instantly share code, notes, and snippets.

@waltflanagan
Created September 4, 2012 14:28
Show Gist options
  • Save waltflanagan/3621660 to your computer and use it in GitHub Desktop.
Save waltflanagan/3621660 to your computer and use it in GitHub Desktop.
Git homebrew setup
#!/bin/bash
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
brew install git bash-completion hub
### setup bash_completion
echo 'if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi' >> ~/.bash_profile
##setup git PS1
#echo "PS1='\[\033[39m\]\u@\h\[\033[00m\]:\[\033[39m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '" >> ~/.bash_profile
#set up case-insensitive tab completion
echo "set completion-ignore-case on" >> ~/.inputrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment