1

I would like to know if there is any way to color, in .bashrc for example, according to what words or what situations.

I explain myself: I want to color the IP addresses that appear on the console, I would also like to color all the error words in red, and also the first argument of each command (the name of the command itself).

1 Answer 1

4

I think what your looking for is grc, i.e generic colorizer. With it you'll be able to setup regexes thats matches your command/output to colors. And there is a bunch of predefined configuration too.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .