PDA

View Full Version : Colorized 'ls' output in terminal


jagga
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
Sep 24, 2002, 09:02 AM
Google.

"Mac color +ls"

it'll be your top entry.

Mike

lmartins
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/fileutils-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.

Gary Kerbaugh
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.