潦草白纸

Mac 实用工具bash-comletion介绍安装

介绍:

相信用过centos系统的同学都满喜欢它的自动补全功能。在mac系统中自带的bash,但是在我们引用git做一些分支切换等操作时并没有我们需要的那么强大。

现在推荐一款好用的插件bash-comletion。

 

安装方法:

brew install bash-completion

相关配置:

wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash

 

if [ -f $(brew --prefix)/etc/bash_completion ]; then
source $(brew --prefix)/etc/bash_completion
fi

source [path]git-completion.bash

 

官网地址:

https://github.com/scop/bash-completion

引用:

How to install the debian bash-completion using homebrew?

posted on 2016-05-05 13:43  潦草白纸  阅读(1146)  评论(0编辑  收藏  举报

导航