Mac 設置git命令tab自動補全(親測有效)

轉載 :https://blog.csdn.net/tiancaijyy/article/details/84888868git

 

注意:github

獲取git-completion.bash  要對應本身的git版本   (git --version 查看)bash

訪問  https://raw.githubusercontent.com/git/git/v2.17.2/contrib/completion/git-completion.bashspa

獲取到的git-completion.bash  放入  /usr/local/opt/bash-completion/etc/bash_completion.d/.net

終端輸入 :code

brew unlink bash-completionblog

brew link bash-completionget

重啓終端後生效it

相關文章
相關標籤/搜索