diff options
author | Starfall <us@starfall.systems> | 2020-07-23 02:14:05 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-07-23 02:14:05 -0500 |
commit | 1bb77948349ae93999fcf75a0c08b9db9b15d910 (patch) | |
tree | ed9b20ae6e85243870be95c10ce5a91ae138291c /.config/zsh | |
parent | 4c746b2173afc23200d41e59d5e483fe05596f3d (diff) |
zsh: substring completion (from oh-my-zsh)
Diffstat (limited to '.config/zsh')
-rw-r--r-- | .config/zsh/.zshrc | 3 |
1 files changed, 3 insertions, 0 deletions
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" |