Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Kalixa

macrumors member
Original poster
Jun 25, 2007
73
0
I remember using syntax highlighting in the Terminal when I was on Linux. But I have never had it on my mac, and it's starting to annoy me. For example, folders would be another color than text files. Can someone tell me how to enable this?
 
coloring is available in TCSH

Check the tcsh man page for details; a quick perusal and search found me the shell variable "color" and the environment variable "LS_COLORS". I'm not sure how to use them or what their differences are, but both seem to work.

For syntax coloring, do ":syntax on" in VIM.

Tom
 
Check the tcsh man page for details; a quick perusal and search found me the shell variable "color" and the environment variable "LS_COLORS". I'm not sure how to use them or what their differences are, but both seem to work.

For syntax coloring, do ":syntax on" in VIM.

Tom

Doesn't Terminal use bash?

Thanks for the tip about VI, but I only need it in the Terminal.
 
You should add

Code:
export CLICOLOR=cons25

to ~/.profile (create that file if it doesn't exist) You will need to close that terminal session and reopen it, or just source the .profile file to reload it

Code:
macuser:~$ . .profile
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.