mac 下git 自动补全

来源:
https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion

我这里安装时通过HomeBrew安装:

Homebrew

  1. Install homebrew

  2. Install Git and bash-completion:

    brew install git && brew install 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)

  3. Add bash-completion to your

    ~/.bash_profile:

    if [ -f $(brew --prefix)/etc/bash_completion ]; then
      . $(brew --prefix)/etc/bash_completion
    fi
    
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容