Homebrew’s `git` not using completion

后端 未结 18 1984
盖世英雄少女心
盖世英雄少女心 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 solved the problem by figuring out that $(brew --prefix)/etc/bash_completion returned Permission denied when executed. So after a simple:

    chmod +x $(brew --prefix)/etc/bash_completion
    

    Everything is now working fine. I'm wondering why Homebrew doesn't make the bash_completion file executable on installation, though.

提交回复
热议问题