Wednesday, September 21, 2016

Colorize GCC Output

To colorize GCC output, insert the following line into ~/.bashrc file:
export GCC_COLORS="error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01"

Now, load ~/.bashrc file and you are set!
$ . ~/.bashrc

For more info, refer here.

No comments:

Post a Comment