I found it really annoying when I use terminal that everything is in one color. I am looking for a way to print the output of my python code in a different color on the terminal console, so it will easier for me to distinguish the output of my code from the standard lines on terminal console (standard lines i.e. cd thisfile
).
I am not looking for a way to specifically print colored python output to terminal like the following link
Print in terminal with colors using Python?
I am looking for a solution that everytime I open up terminal and run python scripts, the output will appear in a slightly different color. I want the effect to be permanent. Similar to turning on syntax on
, once I turn it on, it is in the setting and I don't have to turn it on everytime I launch terminal.
And preferably, if possible, some code that I can just add directly to my .bash_profile
that can help me achieve that, since I am not too familiar with bash scripting.