zsh-workers
 help / color / mirror / code / Atom feed
* list-color && extended_glob
@ 2008-07-05 18:59 Frank Terbeck
  2008-07-05 19:49 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Terbeck @ 2008-07-05 18:59 UTC (permalink / raw)
  To: zsh workers

Hello workers.

Let's assume someone wants colorful completion for kill(1):

[snip]
autoload -U compinit && compinit
zmodload -i zsh/complist
zstyle ':completion:*:kill:*' command 'ps xf -u $USER -o pid,%cpu,cmd'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
[snap]

This only works, if you also setopt extendedglob. If you do not want
that option set this way of coloring the completion list will not
work.

Would it be possible to silently set extendedglob for all style
evaluations (similar to the fact, that it is set in all completion
functions by default)?

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


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

end of thread, other threads:[~2008-07-05 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-05 18:59 list-color && extended_glob Frank Terbeck
2008-07-05 19:49 ` Peter Stephenson

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).