From 10463e3c666a67b8ea81851e38c58d39d36fd8f8 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Mon, 4 Oct 2021 15:38:22 +0200 Subject: [PATCH] zsh: completion on capital letter --- .zsh/02_Completion.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zsh/02_Completion.zsh b/.zsh/02_Completion.zsh index 8b31bea..209a4b8 100644 --- a/.zsh/02_Completion.zsh +++ b/.zsh/02_Completion.zsh @@ -8,7 +8,11 @@ if [ "x$CASE_SENSITIVE" = "xtrue" ]; then zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' unset CASE_SENSITIVE else - zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' + #zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' + # small letter match capital but not the opposite + # e.g. "a" match android.test and Android.mk but + # "A" match Android.mk only + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' fi # Color in completion