![]() |
ls --color=auto (make this stick?)
I would like to get this to work:
1. Color for ls in term.app 2. Color syntax for any text editor in term.app I know that it is possible to do the first. ie if I type ls --color=auto I get a listing with colorized folders and files. Now I need to know how to make this stick... ie what file do I write to and what do I put into it. 2. I don't know if this is possible. I read somewhere that possibly emacs that came with jaguar does this.... How does this work? Are there others? Maybee I need to use a different app then Terminal.app? I am using the tcsh shell and here is my ~/ directory Code:
. .cshrc .tcshrc.save Applications Public |
webgodjj,
Install with Fink the package fileutils. The tools supplied with this package are: Quote:
http://forums.macosxhints.com/showth...ERM+xtermcolor http://forums.macosxhints.com/showth...c&pagenumber=2 Cheers... |
Ok.. I got that to work. Now how about getting syntax highlighting to work? I do alot of programming in PHP. I usually use BBEDIT, however, at times it is useful to use the terminal....
Thanks again! |
I had fileutils installed under jaguar, it compiled nicely without fink... but now in panther 10.3.1, no go, had to resort to fink's aid on this...
SNIP In file included from /usr/include/machine/param.h:30, from /usr/include/sys/param.h:102, from /usr/include/netdb.h:84, from canon-host.c:36: /usr/include/ppc/param.h:98: macro "btodb" requires 2 arguments, but only 1 given /usr/include/ppc/param.h:100: macro "dbtob" requires 2 arguments, but only 1 given make[3]: *** [canon-host.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 [dmcrimson][fileutils-4.1]$ param.h seems to be phooked somehow... |
Quote:
- vi or vim (terminal based) - nedit both have syntax highlighting |
I recently discovered the -G option for "ls" in Panther to enable colorized output.
|
For Panther put this in your .cshrc,
setenv CLICOLOR "true" setenv LSCOLORS "gxfxcxdxbxegedabagacad" To find out what all those letters mean after LSCOLORS, man ls. |
sjk, cradom: those do not work in panther... tried just a minute ago.
|
What specifically doesn't work, the -G option to ls (maybe you're running the wrong version) or the setenv commands (won't work in bash)?
What's the output from "which ls" and "echo $TERM" commands? |
The LSCOLORS works in bash at least. Here's how I have my .bashrc
export LSCOLORS=gxdxcxdxbxegedabagacad export CLICOLOR=1 |
lscolors nor -g do not work with LS supplied with panther. Nor does latest fileutils compile without fink -> /sw/bin/ls is the one I'm using now...
|
It's -G in uppercase, not -g in lowercase. RTFM!
|
RTFM yourself, tested and verified it IS NOT *****ING WORKING!
ls -G yields colors as it should, but it comes from /sw/bin/ /bin/ls -G ... no colors. (I do know the difference between CAPITALS and normal letters) Mods, feel free to eradicate my blabber. |
sjk:
RTFM: Code:
[dmcrimson][dmcrimson]$ man ls | grep G |
term type
easy, boys...
term type can play a factor: Code:
$ TERM=ansi /bin/ls -G |
Quote:
that's fink's GNU ls -G, --no-group inhibit display of group information and it has nothing to do with human readable sizes |
Re: term type
Quote:
I'm finished here, thanks. |
ackackac... sorry sjk... RT (correct) FM is the case:)
but: TERM=ansi /bin/ls -G indeed yields color, although the colors weren't the ones I'm accustomed to... If only I could install the whole fileutils... without fink, that is:) |
Quote:
|
as you can see from above... fileutils 4.1 didnt compile... trying coreutils 5 as soon as it's downed:)
|
Quote:
|
Code:
In file included from /usr/include/machine/param.h:30,:/ Grr@Apple for screwing them headers. |
hmm, make worked here, coreutils-5.0, OSX 10.3.2
|
10.3.2 here too... my param.h seems clunky:/
|
relevant code
Code:
/* bytes to pages */ |
just as it reads in my param.h... did you use anything with ./configure?
|
Quote:
|
bah, this is driving me nutcase here
well, I just gotta live with fink, then... |
HAH!
Problem solved:) commented out line 'source /sw/bin/init.sh' from my .bashrc, also changed CFLAGS='-no-cpp-precomp' from '-Wno-long-double -no-cpp-precomp' and now it installed coreutils 5.0.91 :) |
| All times are GMT -5. The time now is 05:36 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.