How do I turn on color syntax highlighting in the macOS terminal app?
Just have a look at this 
https://superuser.com/questions/400360/syntax-highlighting-in-terminal-mac-os-x post. In my view, it comes with a lot of useful hints.