mirror of
https://github.com/zoriya/flake.git
synced 2026-05-30 17:49:24 +00:00
Disable fuzzy match in zsh completion
This commit is contained in:
@@ -9,14 +9,6 @@ LS_COLORS=${LS_COLORS:-'di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40
|
||||
# case insensitive completion & enable completion from the middle of the word
|
||||
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*'
|
||||
|
||||
# Fuzzy match mistyped completions.
|
||||
zstyle ':completion:*' completer _complete _match _approximate
|
||||
zstyle ':completion:*:match:*' original only
|
||||
zstyle ':completion:*:approximate:*' max-errors 1 numeric
|
||||
# Increase the number of errors based on the length of the typed word. But make
|
||||
# sure to cap (at 7) the max-errors to avoid hanging.
|
||||
zstyle -e ':completion:*:approximate:*' max-errors 'reply=($((($#PREFIX+$#SUFFIX)/3>7?7:($#PREFIX+$#SUFFIX)/3))numeric)'
|
||||
|
||||
# allow completions in commands starting with sudo
|
||||
zstyle ':completion::complete:*' gain-privileges 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user