How to Get Color Prompts on your MacOS Terminal

Have you ever wondered that you would want colors to pop up on your terminal? I did and it made my life easier. It helped me to understand very quickly about the following:
  • Which folder im currently in
  • Which git branch my local workspace is in
  • What terminal commands I have issued
All you have to do is to use the following script in your ~/.bash_profile

Gist link: