]> git.siccegge.de Git - dotfiles/zsh.git/commitdiff
restrict fuzzy matcher somewhat
authorChristoph Egger <christoph@christoph-egger.org>
Sun, 8 Nov 2015 11:49:38 +0000 (12:49 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Sun, 8 Nov 2015 11:49:38 +0000 (12:49 +0100)
zshrc

diff --git a/zshrc b/zshrc
index 1f54e35a8d3c8321eef7361c5f88e4cc962e9f0d..fd2baf2825bdb7838379deb6cb5315c4affd1f8b 100644 (file)
--- 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::*:*:*: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 '\ee' backward-word 
 
 bindkey -e
 bindkey '\ee' backward-word