[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Enableing color LS on consoke sessions



On Sun, Mar 25, 2001 at 10:33:51PM -0500, Hall Stevenson wrote:
> * CaT (cat@zip.com.au) [010325 22:13]:
> > On Sun, Mar 25, 2001 at 08:48:57PM -0500, Hall Stevenson wrote:
> > > * Peter Jay Salzman (p@dirac.org) [010325 19:09]:
> > > > > > export
> > > > > > LS_COLORS='fi=0:ex=31:di=01;34:ln=36:pi=34:cd=45:bd=46:so=35:or=43:*.rpm=01;31:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35'
> > > > > 
> > > > > 
> > > > > Where is that variable assigned ?? I've checked my .bashrc, .profile,
> > > > > and the "global" versions and don't see it.
> > > > 
> > > > hall, i don't know.  it could be 'built in' to bash perhaps?
> > > 
> > > A *quick* check of "man bash" didn't indicate anything like that.

should it? :)

you may have figured this out by now -- but you're talking about
the colors used by the LS program, not by BASH (or VI or PS for
that matter) right? the LS executable checks various places for
settings, including $ENV{LS_COLORS} (see 'info ls').

> > Have you folks checked for something along the lines of:
> > 
> > eval `dircolors -b`
> > 
> > in the afore mentioned files?
> 
> Yep, I have checked on it before... checking "man dircolors" says this:
> 
> The dir_colors file contains configuration information for
> the dircolors(1) program, which  in  turn  provides  color
> information  for  ls(1).   This  file is normally found in
> /etc, though users may maintain their own local copies  in
> their home directories as .dir_colors.
> 
> I have neither an /etc/dir_colors nor ~/.dir_colors or any minor
> variation.
> 
> Thanks for the idea though.

so, in this case, you... MAKE them. without settings files, you
get DEFAULTS -- to override the defaults, you use a settings
file. the tricky part is figuring out where each program looks
for settings, and what exactly those settings strings need to be.

and on *nix, just about every setting under the sun (and behind
it and over it, too) is a text file. with specific constraints.
which is what the manpages/info pages are for.

-- 
It is always hazardous to ask "Why?" in science, but it is often
interesting to do so just the same.
		-- Isaac Asimov, 'The Genetic Code'

will@serensoft.com
http://newbieDoc.sourceforge.net/ -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!



Reply to: