Hi everyone,
I'm having problems coloring the output of ls for specific filetypes like .c, .h, .cpp, etc. I have some generic coloring for ls working now, i.e. when typing ls in Terminal folders appear blue and executables appear red which is great. But I'd like to add color for other filetypes like those mentioned before. Right now my .bash_profile looks something like this:
None of those file extensions are getting colored though; they appear black like normal. Any idea on how I can get filetype coloring working?
Thanks,
Clint
I'm having problems coloring the output of ls for specific filetypes like .c, .h, .cpp, etc. I have some generic coloring for ls working now, i.e. when typing ls in Terminal folders appear blue and executables appear red which is great. But I'd like to add color for other filetypes like those mentioned before. Right now my .bash_profile looks something like this:
Code:
export CLICOLOR=1
export LS_COLORS='ex=35:di=36:ln=31:*.c=32:*.cpp=32:*.cc=32:*.cxx=32:*.h=33:*.hh=33:*.m=32'
None of those file extensions are getting colored though; they appear black like normal. Any idea on how I can get filetype coloring working?
Thanks,
Clint