码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2016-05-05 14:30:02      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:

介绍:

相信用过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?

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

标签:

原文地址:http://www.cnblogs.com/snifferhu/p/5461547.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!