zsh-workers
 help / color / mirror / code / Atom feed
* Re: [3.1.9-dev-8] ZLS_COLORS cleared by compinit
@ 2000-12-13 11:29 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-12-13 11:29 UTC (permalink / raw)
  To: zsh-workers


Vincent Lefevre wrote:

> When compinit is executed from the .zshrc, the ZLS_COLORS variable
> is cleared. For instance, in my .zshrc:
> 
>   compinit
>   export ZLS_COLORS=$LS_COLORS
>   echo blah2 $ZLS_COLORS
> 
> shows that ZLS_COLORS is set, but when I get the prompt:
> 
> lepois:~> env | grep ZLS                                              <14:00:02
> ZLS_COLORS=
> 
> Moreover, it is cleared each time I do a completion, in fact before
> the completion, so that it is never taken into account. This is
> partly due to the "ZLS_COLORS=..." in _main_complete and _setup.

That's why the doc for complist says:

If the completion system based around shell functions is used, these
parameters should not be set directly because the system controls them
itself.  Instead, the list-colors style should be used (see *Note
Completion System Configuration::).


And following that link:

list-colors
     If the zsh/complist module is used, this style can be used to set
     color specifications as with the ZLS_COLORS and ZLS_COLOURS
     parameters (see *Note The zsh/complist Module::).

     If this style is set for the default tag, the strings in the value
     are taken as specifications that are to be used everywhere.  If it
     is set for other tags, the specifications are used only for
     matches of the type described by the tag.  For this to work best,
     the group-name style must be set to an empty string.  If the
     group-name tag specifies other names for the groups the matches in
     these groups can be colored by using these names together with the
     `(group)...' syntax described for the ZLS_COLORS and ZLS_COLOURS
     parameters and adding the specifications to the value for this
     style with the default tag (although in most cases it should work
     by setting this style for the appropriate tags).

     It is possible to use the same specifications set up for the GNU
     version of the ls command:

          zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}

     The default colors are the same as for the GNU ls command and can
     be obtained by setting the style to an empty string (i.e. '').


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [3.1.9-dev-8] ZLS_COLORS cleared by compinit
@ 2000-12-13 11:08 Vincent Lefevre
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent Lefevre @ 2000-12-13 11:08 UTC (permalink / raw)
  To: zsh-workers

When compinit is executed from the .zshrc, the ZLS_COLORS variable
is cleared. For instance, in my .zshrc:

  compinit
  export ZLS_COLORS=$LS_COLORS
  echo blah2 $ZLS_COLORS

shows that ZLS_COLORS is set, but when I get the prompt:

lepois:~> env | grep ZLS                                              <14:00:02
ZLS_COLORS=

Moreover, it is cleared each time I do a completion, in fact before
the completion, so that it is never taken into account. This is
partly due to the "ZLS_COLORS=..." in _main_complete and _setup.

The system:

lepois:~> uname -a                                                    <14:00:04
OSF1 lepois.loria.fr V4.0 1229 alpha

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / PolKA research team at LORIA


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-13 11:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-13 11:29 [3.1.9-dev-8] ZLS_COLORS cleared by compinit Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
2000-12-13 11:08 Vincent Lefevre

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).