Autocomplete git in mac OS not working?

后端 未结 6 1578
清歌不尽
清歌不尽 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条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 07:49

    The git-completion.bash distributed is a Windows file with "\n\r" as a newline. You need to remove the '\r'.

    For vim users, just do ":set ff=unix".

提交回复
热议问题