case insensitive substring completion

This commit is contained in:
yuri-rage 2014-07-08 01:02:39 +03:00
commit b173beaa72

View file

@ -15,7 +15,17 @@ if [ "x$CASE_SENSITIVE" = "xtrue" ]; then
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
unset CASE_SENSITIVE unset CASE_SENSITIVE
else else
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' # in order try:
# simple tab completion
# case insensitive completion
# simple substring completion
# case insensitive substring completion
# by defining multiple patterns, completion performance remains fast
# while still affording tons of flexibility
zstyle ':completion:*' matcher-list '' 'm:{A-ZÄÖÜa-zäöü}={a-zäöüA-ZÄÖÜ}' \
'r:|[._-]=* r:|=*' 'l:|=* r:|=*' \
'm:{A-ZÄÖÜa-zäöü}={a-zäöüA-ZÄÖÜ} r:|[._-]=* r:|=*' \
'm:{A-ZÄÖÜa-zäöü}={a-zäöüA-ZÄÖÜ} l:|=* r:|=*'
fi fi
zstyle ':completion:*' list-colors '' zstyle ':completion:*' list-colors ''