From 1bb77948349ae93999fcf75a0c08b9db9b15d910 Mon Sep 17 00:00:00 2001 From: Starfall Date: Thu, 23 Jul 2020 02:14:05 -0500 Subject: zsh: substring completion (from oh-my-zsh) --- .config/zsh/.zshrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config/zsh') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 88ae0b8..aa9b241 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -26,7 +26,10 @@ setopt auto_param_slash # convenience: add trailing / after directories setopt extended_glob setopt no_case_glob setopt no_flow_control +# complete . and .. zstyle ':completion:*' special-dirs true +# complete the middle of words e.g. lc -> pluralcafe +zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' # cache completions zstyle ':completion::complete:*' use-cache yes zstyle ':completion::complete:*' cache-path "$HOME/.zcompcache" -- cgit