Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Colorized 'ls' output in terminal

Colorized 'ls' output in terminal
Thread Tools
jagga
Senior User
Join Date: Jan 2000
Location: davis, CA, USA
Status: Offline
Reply With Quote
Sep 24, 2002, 01:09 AM
 
Hi all, I had this ability with 10.1 but I forgot how I got that. Can anyone point me in the right direction?

Thanks
     
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Sep 24, 2002, 09:02 AM
 
Google.

"Mac color +ls"

it'll be your top entry.

Mike
     
lmartins
Fresh-Faced Recruit
Join Date: Jul 2002
Location: Algarve, Portugal
Status: Offline
Reply With Quote
Sep 24, 2002, 11:05 AM
 
Originally posted by jagga:
Hi all, I had this ability with 10.1 but I forgot how I got that. Can anyone point me in the right direction?

Thanks
Get this file
http://ftp.gnu.org/pub/gnu/fileutils...ils-4.1.tar.gz

decompress it and compile it: ./configure and make
copy the 'ls' executable to /usr/local/bin and you are ready to go!
(considering that you have /usr/local/bin on your path.. it was by default in OSX 10.1 but not anymore in 10.2)

Greetings.
--
Leonel Martins
     
Gary Kerbaugh
Dedicated MacNNer
Join Date: Jul 2001
Location: NC
Status: Offline
Reply With Quote
Sep 24, 2002, 07:31 PM
 
   Deivy reports that users of tcsh can coerce tcsh to produce color with ls-F and completions. Here is a quote from his post on the Apple UNIX discussion.

   I am using tcsh, and I am following to the letter the README file on "usr/share/tcsh/examples/". I read man tcsh, and created a file environments.mine in "~Library/init/tcsh/" and added the line "set color".
It works for ls-F and for file completion. it should (i gather) work for ls, but it does not.
   If any body has a shot at it and finds this out, I'll be very appreciative. Meanwhile, the recipe above sets the default colors for ls-F and file completion.

   One could also alias ls to ls-F.
Gary
A computer scientist is someone who, when told to "Go to Hell", sees the
"go to", rather than the destination, as harmful.
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 09:49 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,