打赏

git 自动补全

git 自动补全

(1.)下载git-completion.bash文件到/root家目录

vim ~/.git-completion.bash
内容见:
https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

(2.)配置生效

vi ~/.bashrc
source ~/.git-completion.bash  # 末尾加
posted @ 2020-12-02 13:34  苍山落暮  阅读(184)  评论(0编辑  收藏  举报