在 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 |
|
重启终端,即可解决。
用zsh不好吗
我没有用 zsh 替换掉 bash,可能是用习惯了吧,并且 zsh 好像对我来说没有太多明显的优势,加上公司服务器全部是 Ubuntu(bash)。