Mac OSX でgitをauto-completionする
1336 ワード
git-completion.bashをダウンロードする
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
~/.bash_profileを作成する
touch ~/.bash_profile
~/.bash_profileを修正する
vi ~/.bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
~/.bash_profileの修正内容を有効する
source ~/.bash_profile
git branchを表示させる
以下のポストをご覧ください。
https://medium.com/@thucnc/how-to-show-current-git-branch-with-colors-in-bash-prompt-380d05a24745
Author And Source
この問題について(Mac OSX でgitをauto-completionする), 我々は、より多くの情報をここで見つけました https://qiita.com/pham-anh/items/051cabae019a81578ae9著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .