Created
April 2, 2015 17:27
-
-
Save joanfont/6931ed7088d79ed478dd to your computer and use it in GitHub Desktop.
Git bash completion on OS X 10.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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