Autocomplete git in mac OS not working?

后端 未结 6 1629
清歌不尽
清歌不尽 2021-02-01 07:19

I am using git in mac. I am trying to have the autocomplete feature. I followed these steps (http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/) but I get this

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 07:39

    I had tried to use curl -O but the url was wrong and I ended up copying the text which caused the error.

    Using this command made it work perfectly:

    curl -O https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
    

    Thanks a lot everyone for your help!

提交回复
热议问题