Skip to content

Instantly share code, notes, and snippets.

@joanfont
Created April 2, 2015 17:27
Show Gist options
  • Save joanfont/6931ed7088d79ed478dd to your computer and use it in GitHub Desktop.
Save joanfont/6931ed7088d79ed478dd to your computer and use it in GitHub Desktop.
Git bash completion on OS X 10.10
# Put this snippet in your .bash_rc
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
fi
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
PS1='\h:\W $(__git_ps1 "(%s)") \u$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment