DEV Community

Mike Bobadilla
Mike Bobadilla

Posted on • Originally published at on


Setting up git autocomplete on mac

Mac's git doesn't come with auto complete, which is obnoxious, so I just run this is on my new systems. You don't have to do it this way and just piece it together for yourself using the git site like I did.

curl -O
echo "source ~/git-completion.bash" >> ~/.bash_profile
source ~/.bash_profile
Enter fullscreen mode Exit fullscreen mode
This is the code I run. Trust but verify ☑️

This is also stored in my current setup page

Top comments (2)

igorganapolsky profile image
Igor Ganapolsky

This doesn't work. Error:

/Users/igorganapolsky/git-completion.bash:8: parse error near `\n'

mikebobadilla profile image
Mike Bobadilla

oh thanks. Ill fix it

Here is a post you might want to check out:

Regex for lazy developers

regex for lazy devs

Sorry for the callout 😆