Results 1 to 7 of 7

Thread: Colored ls

  1. #1
    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:
    http://homepage.mac.com/rgriff/

  2. #2

    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    Specs:
    17" iMac G4 800MHz 1GB RAM
    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!

  3. #3
    gatorparrots
    Guest
    Did you install fileutils?

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

  4. #4

    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    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...
    Emrys
    Community Administrator / Moderator
    MAC-FORUMS.COM - The Ultimate Source For Your Mac!

  5. #5
    gatorparrots
    Guest
    rehash
    and
    source ~/.tcshrc
    or
    source ~/.cshrc
    (whichever is appropriate for your configuration)
    Then try an ls ~. You should be seeing color!

  6. #6

    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    Specs:
    17" iMac G4 800MHz 1GB RAM
    Nope no color....

    Did rehash

    And source ~./cshrc
    Emrys
    Community Administrator / Moderator
    MAC-FORUMS.COM - The Ultimate Source For Your Mac!

  7. #7
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. iPad colored screens.
    By iLove in forum iPad Hardware and Accessories
    Replies: 4
    Last Post: 03-26-2012, 01:44 AM
  2. Help with Colored lines and it's not the PRAM!
    By Weegirl23 in forum Apple Notebooks
    Replies: 0
    Last Post: 01-31-2009, 11:37 PM
  3. Colored Aqua Wallpapers
    By jimb930 in forum Images, Graphic Design, and Digital Photography
    Replies: 1
    Last Post: 04-10-2008, 04:15 PM
  4. Colored iPods?
    By boarderjosh10 in forum iPod Hardware and Accessories
    Replies: 3
    Last Post: 09-18-2006, 11:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •