Homebrew’s `git` not using completion

后端 未结 18 1989
盖世英雄少女心
盖世英雄少女心 2020-12-22 16:25

When using OSX’s git, after I modify a file I can simply do git commit , and that’ll auto complete the file’s name to the one that was modified. Howe

18条回答
  •  伪装坚强ぢ
    2020-12-22 16:39

    This worked for me in Mojave (OSX 10.14.1):

    brew install bash-completion
    

    Then add the following line to your ~/.bash_profile:

    [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
    

提交回复
热议问题