New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Colored ls


Post Reply New Thread Subscribe

 
Thread Tools
gatorparrots
Guest
 
Posts: n/a

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:
http://homepage.mac.com/rgriff/
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
Tried both the dircolors command and making a .dircolors file, and neither worked.

Emrys
Community Administrator / Moderator
MAC-FORUMS.COM - The Ultimate Source For Your Mac!
QUOTE Thanks
gatorparrots
Guest
 
Posts: n/a

Did you install fileutils?

Attached is my .dir_colors file (it's too lengthy to post the contents here).
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
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...

Emrys
Community Administrator / Moderator
MAC-FORUMS.COM - The Ultimate Source For Your Mac!
QUOTE Thanks
gatorparrots
Guest
 
Posts: n/a

rehash
and
source ~/.tcshrc
or
source ~/.cshrc
(whichever is appropriate for your configuration)
Then try an ls ~. You should be seeing color!
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
Nope no color....

Did rehash

And source ~./cshrc

Emrys
Community Administrator / Moderator
MAC-FORUMS.COM - The Ultimate Source For Your Mac!
QUOTE Thanks
gatorparrots
Guest
 
Posts: n/a

Quote:
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
QUOTE Thanks

Post Reply New Thread Subscribe


« REALBasic Tutorials | lsmac -- Resource fork-savvy version of ls »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 04:10 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?