• 安装Homebrew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 安装bash-completion
    brew install bash-completion
  • 根据bash-completion安装完成后提示,将[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion加入~/.bash_profile

二、下载git-completion.bash文件

  • 拷贝该页面代码到本地~/.git-completion.bash

  • source ~/.git-completion.bash加入~/.bash_profile

  • 执行source ~/.bash_profile

相关文章:

  • 2022-03-05
  • 2022-03-06
  • 2021-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-11-17
  • 2021-11-17
  • 2021-09-03
猜你喜欢
  • 2021-12-23
  • 2021-11-22
  • 2021-09-22
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案