diff --git a/colorgcc.1.3.2.txt b/colorgcc.1.3.2.txt index 3cc7899..258ab97 100644 --- a/colorgcc.1.3.2.txt +++ b/colorgcc.1.3.2.txt @@ -14,17 +14,13 @@ # # Usage: # -# In a directory that occurs in your PATH _before_ the directory -# where the compiler lives, create a softlink to colorgcc for -# each compiler you want to colorize: +# Call the compiler name with the 'color-' prefix, eg: +# color-gcc +# color-g++ +# color-cc +# color-c++ # -# g++ -> colorgcc -# gcc -> colorgcc -# cc -> colorgcc -# etc. -# -# That's it. When "g++" is invoked, colorgcc is run instead. -# colorgcc looks at the program name to figure out which compiler to run. +# That's it. # # The default settings can be overridden with ~/.colorgccrc. # See the comments in the sample .colorgccrc for more information. @@ -93,10 +89,11 @@ use IPC::Open3; sub initDefaults { - $compilerPaths{"gcc"} = "/usr/bin/gcc"; - $compilerPaths{"g++"} = "/usr/bin/g++"; - $compilerPaths{"cc"} = "/usr/bin/cc"; - $compilerPaths{"c++"} = "/usr/bin/c++"; + $compilerPaths{"color-gcc"} = "gcc"; + $compilerPaths{"color-g++"} = "g++"; + $compilerPaths{"color-cc"} = "cc"; + $compilerPaths{"color-c++"} = "c++"; + $compilerPaths{"color-ccache"} = "ccache"; $nocolor{"dumb"} = "true";