Git Autocompletion looks weird (and only half-functional)

autocomplete, bash, git, linux, macos

Solution

Turns out this is a simple fix. I simply removed the following line from my ~/.bashrc file (as per this post):

export GREP_OPTIONS='--color=always'

...and now it works like a charm :)

Problem

Following these excellent instructions for enabling Git bash autocompletion in OSX: ``` curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash echo "source ~/.git-completion.bash" >> ~/.bash_profile ``` I get the following output when I type "git TabTab" at the command line: Following multiple different tutorials produces the same result. Either I don't know the right search terms or there is just very little documented about this issue... Anyone encountered similar issues implementing git autocompletion for OSX? Running Lion if that's important.

Original source