[completion] Simplify matcher-list syntax
Refactor using `+` instead of repeating the case insensitive pattern.
This commit is contained in:
parent
2a7797c2da
commit
56b61e211d
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ zstyle ':completion:*:warnings' format '%F{red}-- no matches found --%f'
|
||||||
zstyle ':completion:*' format '%F{yellow}-- %d --%f'
|
zstyle ':completion:*' format '%F{yellow}-- %d --%f'
|
||||||
zstyle ':completion:*' group-name ''
|
zstyle ':completion:*' group-name ''
|
||||||
zstyle ':completion:*' verbose yes
|
zstyle ':completion:*' verbose yes
|
||||||
local case_insensitive='m:{a-zA-Z}={A-Za-z}'
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' '+r:|?=**'
|
||||||
zstyle ':completion:*' matcher-list ${case_insensitive} "${case_insensitive} r:|?=**"
|
|
||||||
|
|
||||||
# directories
|
# directories
|
||||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||||
|
|
Loading…
Reference in a new issue