1. Install homebrew
2. Install Git and bash-completion: brew install git bash-completion
(Note: If this install fails with a 404 error, and you already have git installed, just remove the git part of this brew install)
在我电脑上已经安装了git,现在只需要安装bash-completion即可,执行如下命令
uxiaolei@duxiaoleideMacBook-Pro:~$brew install bash-completion Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (bazelbuild/tap). ==> Updated Formulae bazelbuild/tap/bazel ==> Downloading https://homebrew.bintray.com/bottles/bash-completion-1.3_3.high_sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring bash-completion-1.3_3.high_sierra.bottle.tar.gz ==> Caveats Add the following line to your ~/.bash_profile: [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" Bash completion has been installed to: /usr/local/etc/bash_completion.d ==> Summary
相关文章
- 使用Visual Studio Comunity 开发Unity C#脚本没有自动补全的解决方法
- 解决mac OSX下安装git出现的\"git命令需要使用开发者工具。您要现在安装该工具吗\"(19款Mac) - 峰哥book
- Ubuntu 下无法Tab键自动补全功能解决办法
- 解决双系统(Window10+Ubuntu16.10)下ubuntu安装git时提示软件包git没有可安装候选问题
- Mac下的命令行自动补全功能
- mac系统终端下忽略大小写 与 git自动补全(git auto completion)
- mac git 命令自动补全
- mac vim 下安装自动补全插件YouCompleteMe
- Mac下git命令自动补全
- 测试一下robotgo自动化操作,顺便解决了原来的mingw版本中只有gcc,没有g++的问题