I'm new to Apple (coming from Linux) and have been stymied in every attempt to use my .bash_profile to get my terminal to color files by their extension (a process which was a single line in my .cshrc file!). I've had some promising leads via google searching, but all end up having a fatal flaw (e.g., requiring dircolors, which in and of itself has led me on several seemingly doomed google searches, or tweaks on "export LSCOLORS" commands which don't seem to get any further than coloring directories, etc).
I'm on OS X 10.9.2. I've installed coreutils and MacPorts. Can someone point in me in the right direction?
Edit: In case it wasn't clear, I'd like to be able to specify that, e.g., .tex files appear red, .txt files appear green, .pdf files appear blue, etc., when viewed in a terminal via ls.
Edit2: Just to show I've done my research (or some research), here's the superuser question and answer which addresses this for Linux. The coreutils idea for replicating this on OSX does not seem to actually give me dircolors, or suggest an option for progressing in its place.