mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
case insensitive substring completion
This commit is contained in:
parent
5728a5608d
commit
b173beaa72
1 changed files with 11 additions and 1 deletions
|
|
@ -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 ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue