1
0
Fork 0
mirror of synced 2024-11-29 18:55:34 -05:00

[completion] Simplify matcher-list syntax

Refactor using `+` instead of repeating the case insensitive pattern.
This commit is contained in:
Eric Nielsen 2018-04-03 08:55:43 -05:00
parent 2a7797c2da
commit 56b61e211d

View file

@ -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}