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 +++ README.md | 4 ++-- 2 files changed, 5 insertions(+), 2 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" diff --git a/README.md b/README.md index 07aafd4..5a6721d 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ END >> /etc/ssh/sshd_config ### todo * zsh plugins - * not sure if antigen, zinit, or zgen for the plugin manager - * p10k? + * zinit + * p10k? honestly don't really need it * zsh-users/zsh-autosuggestions (maybe) * zsh-users/zsh-syntax-highlighting * zsh-users/zsh-completions -- cgit