zsh: completion: improve case insensitivity of approximate-completer

This commit is contained in:
Thomas Preisner 2017-10-06 23:38:55 +02:00
parent 6182aeca25
commit 5b1954b5b2

View file

@ -51,7 +51,7 @@ zstyle ':completion:::::' completer \
#TODO: keep _prefix or not? #TODO: keep _prefix or not?
# ignore case when trying to match typed characters # ignore case when trying to match typed characters
zstyle ':completion:*:(^approximate):*' matcher-list 'm:{a-z}={A-Z}' zstyle ':completion:*:(^approximate):*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}'
# allow one mistake per three characters # allow one mistake per three characters
zstyle -e ':completion:*:approximate:*' max-errors \ zstyle -e ':completion:*:approximate:*' max-errors \