Source for color ls

Darkshadow

wandering shadow
It's bundled together with a bunch of other commands. You can grab it from http://www.gnu.org - look for fileutils.tar.gz - it's in there (along with chgrp, chmod, chown, cp, df, dircolors, install, ln, mkdir, mkfifo, mknod, mv, rm, rmdir...maybe some other ones as well, it's hard for me to remember what installed what sometimes.)
 

hekal

Registered
I installed but it did not show color :/

I will try again from home versus over SSH.

Originally posted by Darkshadow
It's bundled together with a bunch of other commands. You can grab it from http://www.gnu.org - look for fileutils.tar.gz - it's in there (along with chgrp, chmod, chown, cp, df, dircolors, install, ln, mkdir, mkfifo, mknod, mv, rm, rmdir...maybe some other ones as well, it's hard for me to remember what installed what sometimes.)
 

AdmiralAK

Simply Daemonic
I *could* be mistaken about this, but when I ran SuSE linux 7.0 (under VPC) and went into the terminal I could specify what color was associated with which file, so I could make my dirs look green, aliases as yellow and so on and so forth. Maybe this would be a nice feature for apple's terminal ;)
 

Red Phoenix

Registered
While I'm not sure which ls you're using, for mine you have to specify that color will be used (I added a different ls a long while back). Try adding this to your ~/.cshrc file:

alias ls 'ls --color=always'
 

Darkshadow

wandering shadow
Yes, you need to do the above alias. Sorry, forgot to mention that. You can also use the dircolors program to change the colors if you wish.

Just make sure to take the one out that has do=... - tcsh and some other programs barf over that line, they'll quit with a bus error and tell you 'Unknown color ls variable 'do'"
 

jcpowers21

Registered
You could also go to http://macosx.forked.net and download their color-ls package, install that then in your .cshrc file type in 'alias ls ls --color'. I am fairly sure that you do not need the ls --color=always in the tag, but I may be wrong.
 

Red Phoenix

Registered
I only used =always as it was what was used in the ResExcellence tutorial a long time ago. ls isn't exactly a command I've spent much time reading the manual for.

Incidentally, another binding that is useful is

alias sl 'ls -Ahlk --color=always | more'

That's actually the command the ResExcellence tutorial gave. At least, I think it was ResExcellence.
 

hekal

Registered
I refuse to install a .pkg. Does the uninstall feature actually work in 10.1?

Originally posted by jcpowers21
You could also go to http://macosx.forked.net and download their color-ls package, install that then in your .cshrc file type in 'alias ls ls --color'. I am fairly sure that you do not need the ls --color=always in the tag, but I may be wrong.
 
Top