Git auto complete and color coding

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

First lets get the auto completed code

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

Now add to your .bashrc or .bash_profile

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

To enable Git color coding

git config color.ui
git config --global color.ui true

Leave a Reply

avatar
3000
  Subscribe  
Notify of