Git: completion

 

Linux:

source /etc/bash_completion.d/git

souirce /usr/share/bash-completion/completions/git

 

apt-get install git-core bash-completion

 

source "$(pkg-config --variable=completionsdir bash-completion)"/git

 

 

Mac:

brew install bash-completion@2

 

git-completion.bash

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

branch: 

curl https://raw.githubusercontent.com/git/git/v$(git version | awk '{print $3}')/contrib/completion/git-completion.bash

 

 

 

 

posted @ 2022-10-02 23:19  ascertain  阅读(58)  评论(0)    收藏  举报