I wrote this article in hopes to fully introduce a new person to how he can customise his zsh and overall shell experience better.
It also has some useful commands that I like in the end. :)
[Comment removed by author]
I think it’s because colors can encode other information. In this case, when I see these colors I know I’m at the prompt, which is useful to distguish from other text. Plus, the different colors in the prompt encode different things (current directory is color1, etc).