From most of my screenshots, I guess it would be clear for most, that I spend a lot of time coding and simulating. That means I spend a lot of time with just good old urxvt. This is one of the main reasons why I spend quite some time to get a good color setup. I don’t like to look at a monochromatic terminal all the time. So I had been always wondering about even colorizing all my logs, and outputs for a variety of Unix commands. This is where color wrapper comes into the picture.
It was Arthur from FreeBSD forums who led me to it. Though I had used colortail in the past, I wonder how I missed color wrapper completely. Anyway this is a nifty little program that colorizes a whole lot of things. All the way from many unix command outputs, to the compilation of a programs. You must be wondering, big deal, who cares! For one, it makes it easier to look for errors in the compilation logs, since bright colors indicate warning message or error messages, that might be difficult to hunt down upon looking plain logs. Since I use Lunar Linux, and I always use ports on my BSD boxes, it is useful. But most importantly, who wouldn’t wanna bring some life into ping! 😀
Grab the color wrapper from here. And then simple configure, make, make install. That’s about it. Once you are done, you need to export the path of the installed wrapper script in your .bash_profile (you can also add it to .zshrc), like this,
My .bash_profile, .bashrc, .zshrc are all available over at github anyway.
Once it’s done, exit the terminal, and open a new one and test some commands like uname, cal, etc. The output will be colored. Here is a demonstration.
Note: Somehow, cwrapper doesn’t play nice with my previous .zshrc, which had a lot of info piped into the prompt, and used some non ascii characters. I still haven’t figured out the real reason though. Will look into it over the weekend.
Good luck and add some color to your terminal! 😀