Is there a way to make all the output of my terminal colored in a personalized way? e.g: If I issue the command:
sudo apt-get update - I will get a column of text and what I want is a way to colorize RED if there are any words like "ERROR" in this text, and GREEN any words like "DONE" or "FINISHED".
Thats just an example, and I understand that this could screw up with other programs colored output, just curious if this is possible.
I'm using ZSH at the moment, but accept answers for every terminal emulator.