Colored ls

G

gatorparrots

Guest
Color can be added to any shell with a ~/.dir_colors file and with color ls (part of the GNU fileutils package).
You can get a pre-compiled binary of fileutils here:
tp://homepage.mac.com/rgriff/ (outdated link removed)
 
Joined
Oct 27, 2002
Messages
1,345
Reaction score
0
Points
36
Location
Vermont
Your Mac's Specs
17" iMac G4 800MHz 1GB RAM
Tried both the dircolors command and making a .dircolors file, and neither worked.
 
OP
G

gatorparrots

Guest
Did you install fileutils?

Attached is my .dir_colors file (it's too lengthy to post the contents here).
 
Joined
Oct 27, 2002
Messages
1,345
Reaction score
0
Points
36
Location
Vermont
Your Mac's Specs
17" iMac G4 800MHz 1GB RAM
Yes, I did the 'fink install fileutils' and it went through the install, and everything seemed to compile all right. Wonder what I'm missing here... I used your .dir_colors file as well...
 
OP
G

gatorparrots

Guest
rehash
and
source ~/.tcshrc
or
source ~/.cshrc
(whichever is appropriate for your configuration)
Then try an ls ~. You should be seeing color!
 
Joined
Oct 27, 2002
Messages
1,345
Reaction score
0
Points
36
Location
Vermont
Your Mac's Specs
17" iMac G4 800MHz 1GB RAM
Nope no color....

Did rehash

And source ~./cshrc
 
OP
G

gatorparrots

Guest
Originally posted by gatorparrots@Mar 17 2003, 08:29 AM
rehash
and
source ~/.tcshrc
or
source ~/.cshrc
(whichever is appropriate for your configuration)
Then try an ls ~. You should be seeing color!
I had forgotten to tell you to append this line to your ~/.*cshrc file:
eval `dircolors -c ~/.dir_colors`
An easy way to add it in place would be:
echo "eval `dircolors -c ~/.dir_colors`" >> ~/.cshrc
Which is why you need to source it in the first place!
source ~/.cshrc
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top