Colour your git

You want autocompletion, colours and your current branch in your terminal? You can find hundreds of tutorials on the net, I will just tell you what to do on MacOS:

Add these lines to your .bash_profile

This will enable autocompletion for git commands and branch names and also show your current branch. Note that in the last line, you can change colours if you’d like to be different.

You may need these two files in /usr/local/git/contrib/completion.

To enable fancy colours in your git command output, type:

or just some of these if you don’t want everything coloured:

Enjoy your all-new Terminal.

Leave a Reply

Name and Email Address are required fields. Your email will not be published or shared with third parties.