安装
brew install bash-completion

查看
brew info bash-completion

添加配置

Add the following line to your ~/.bash_profile:
  [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion

然后根据提示将配置文件加入 .bash_profile

查看原文

发表评论