From 98fecc44a7f587f646ab4317fa979ea4fc49ea87 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sun, 8 Nov 2015 12:49:38 +0100 Subject: [PATCH] restrict fuzzy matcher somewhat --- zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zshrc b/zshrc index 1f54e35..fd2baf2 100644 --- a/zshrc +++ b/zshrc @@ -47,6 +47,8 @@ zstyle ':completion:*' menu select=3 zstyle -e ':completion::*:*:*:hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2|_uni|_debian)(N) /dev/null)"}%%[# ]*}//,/ })' zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:::::' completer _force_rehash _complete _approximate _expand _ignored +zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX + $#SUFFIX) / 3 )) )' +zstyle ':completion:*:(^approximate):*' matcher-list 'm:{a-z}={A-Z}' bindkey -e bindkey 'e' backward-word -- 2.39.2