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

Re: completion



On 2014-12-11 11:34:20 -0800, Ray Andrews wrote:
> Anyway, knowing that the star replaces the colons cracks it open.

This is a bit old, but... When can an asterisk replace a colon?
For instance, in:

      zstyle ':completion:*:*:-redirect-,2>,*:*' file-patterns '*.log'

      zstyle ':completion:*:*:kill:*' verbose no

      zstyle ':completion:*:default' menu ...

      zstyle ':completion:*:sudo::' environ [...]

      zstyle ':completion::complete:cd:*' tag-order [...]

      zstyle ':completion:*:*:rm:*' file-patterns [...]

      zstyle ':completion:*:*:-command-:*' group-order [...]

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

      zstyle ':completion:*:complete:*' matcher-list [...]

etc.

which have one or several missing colons. This is from the
zshcompsys(1) man page.

If an asterisk can match anything, there may be an ambiguity on
which field some given word will match.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



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