Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

list-color && extended_glob



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



Messages sorted by: Reverse Date, Date, Thread, Author