Homebrew’s `git` not using completion

后端 未结 18 2009
盖世英雄少女心
盖世英雄少女心 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:50

    I know this is an old post, but you don't really need to install any additional packages.

    Homebrew is informing you that there is a directory with all the stuff you need.

    You can simply add the following line to your .bash_profile if you are using Bash:

    source /usr/local/etc/bash_completion.d/git-completion.bash
    

提交回复
热议问题