Skip to content

Instantly share code, notes, and snippets.

@Aupajo
Created February 8, 2009 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aupajo/60132 to your computer and use it in GitHub Desktop.
Save Aupajo/60132 to your computer and use it in GitHub Desktop.
git ps1 and completion on leopard
curl -o ~/.git-completion.bash http://github.com/git/git/raw/master/contrib/completion/git-completion.bash
echo "source ~/.git-completion.bash" >> ~/.profile
echo "export PS1='\u:\W\$(__git_ps1 \"\[\e[32m\][%s]\[\e[0m\]\")$ '" >> ~/.profile
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment