From f46937d2deeae6bd11e846fc3271cf3539376de7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 3 Mar 2020 12:26:07 +0000 Subject: [PATCH] Fix case-insensitive autocompletion --- tag-zsh/zsh/configs/post/completion.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tag-zsh/zsh/configs/post/completion.zsh b/tag-zsh/zsh/configs/post/completion.zsh index e494ff6..2f5ac0b 100644 --- a/tag-zsh/zsh/configs/post/completion.zsh +++ b/tag-zsh/zsh/configs/post/completion.zsh @@ -12,3 +12,7 @@ fi; # disable zsh bundled function mtools command mcd # which causes a conflict. compdef -d mcd + +## case-insensitive (all), partial-word and then substring completion +zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' \ + 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'