Colorgcc

Installation

  1. install colorgcc, with your distribution package manager, by downloading it on the official webpage http://schlueters.de/colorgcc.html, or by downloading my improved version (from the Gentoo version, submitted at http://bugs.gentoo.org/show_bug.cgi?id=291060) : colorgcc, colorgccrc
  2. make sure ~/bin path is in your $PATH variable before /usr/bin
  3. place symlinks in ~/bin/:
    cc  -> /usr/bin/colorgcc
    gcc -> /usr/bin/colorgcc
    g++ -> /usr/bin/colorgcc
    c++ -> /usr/bin/colorgcc
  4. create a ~/.colorgccrc file, and define inside the location of the real cc, gcc, g++ binaries:
    /usr/bin/cc, gcc, g++

Source: http://en.opensuse.org/Libzypp/Devel/colorgcc