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

it2022-05-09  14

介绍:

相信用过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 ]; thensource $(brew --prefix)/etc/bash_completionfi

source [path]git-completion.bash

 

官网地址:

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

引用:

How to install the debian bash-completion using homebrew?

转载于:https://www.cnblogs.com/snifferhu/p/5461547.html

相关资源:数据结构—成绩单生成器

最新回复(0)