Git Autocomplete looks weird (and only semi-functional)

Following these excellent instructions for enabling git bash autocomplete 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 Tab Tab " on the command line:

Output from git tab-tab

After several different textbooks, the same result is obtained. Either I do not know the correct search terms, or there is very little documented about this problem ...

Has anyone encountered similar issues when implementing Git autocomplete for OSX? Running Leo, if that matters.

+6
source share
2 answers

Turns out this is a simple fix. I just deleted the following line from my ~ / .bashrc file (according to this post ):

 export GREP_OPTIONS='--color=always' 

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

+2
source

I have the same problem. Using export GREP_OPTIONS='--color=auto instead of export GREP_OPTIONS='--color=always' may solve this problem.

+4
source

Source: https://habr.com/ru/post/920928/


All Articles