Browse Source

zsh: completion on capital letter

master
Mathieu Maret 2 weeks ago
parent
commit
9f66d788b5
  1. 6
      .zsh/02_Completion.zsh

6
.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

Loading…
Cancel
Save