[macOS] HomeBrew 自动补全命令参数
在 macOS 中使用 HomeBrew 安装的软件包竟然无法自动补全参数信息,难受。
比如:git push origin master,除了git能自动补全外,其它都不行。
解决办法:安装bash-completion。
$ brew install bash-completion
将以下片段粘贴到~/.bash_profile后面:
1 2 3 |
|
重启终端,即可解决。
在 macOS 中使用 HomeBrew 安装的软件包竟然无法自动补全参数信息,难受。
比如:git push origin master,除了git能自动补全外,其它都不行。
解决办法:安装bash-completion。
$ brew install bash-completion
将以下片段粘贴到~/.bash_profile后面:
1 2 3 |
|
重启终端,即可解决。