Re: Color-ls package nearly ready for release, but I need...
On Thu, 14 Mar 1996, Syrus Nemat-Nasser wrote:
> (1) Can someone give me the proper syntax for making a symolic link
> for a command with options: specifically, i need to link the
> expression vdir to 'ls -li' because the color-ls patch consolidates
> dir, vdir, and ls into one binary. I tried ln -s 'ls -li' vdir,
> but did not get the desired effect.
I believe that color ls comes with a program called dircolors or something
like that. Then you typically run eval `dircolors` in your .profile and
vdir gets aliased to ls -li. You can't link a file to another file with
options. The only way is to make the executable perform differently based
on the way it is called, like the way sz sb and sx are all hardlinks to
the same executable, or to make vdir a shell script. I prefer the way
it's currently handled with the aliases. The eval `dircolors` sets all of
the aliases needed to use vdir and all that, as well as reading the
DIR_COLORS file and setting the shell variables that ls reads to set colors.
As I see it there shouldn't be a vdir executable in a system running color
> (2) I'm looking for a copy of the default configuration file called
> DIR_COLORS which should be in /etc in any Slackware system.
> I'm hoping that someone with a working Slackware distribution
> can send me a copy of this file.
I have a copy of that DIR_COLORS file. I upgraded from Slackware to Debian,
and I tarred my old etc directory. I also have it in my current debian
system, as I installed color ls myself and used the DIR_COLORS file from
my old Slackware system. I'm not at home right now, but I'll mail you a
copy of it when I get home from work.
> Syrus Nemat-Nasser <email@example.com> UCSD Physics Dept.