github|git 命令自动补全配置教程

更新时间:2019-12-26    来源:远程及网络应用    手机版     字体:

【www.bbyears.com--远程及网络应用】

只需要完成下面两部,就可以实现在mac osx 下git 命令自动补齐

首先下载自动补齐脚本,使用curl命令如下:

curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

编辑.profile 文件,在最后增加如下代码:

if [ -f ~/.git-completion.bash ]; then
    source ~/.git-completion.bash
fi

重启终端后应该就可以愉快的使用tab来自动补全了

本文来源:http://www.bbyears.com/asp/83721.html

热门标签

更多>>

本类排行