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 | |
parent | 4c746b2173afc23200d41e59d5e483fe05596f3d (diff) |
zsh: substring completion (from oh-my-zsh)
-rw-r--r-- | .config/zsh/.zshrc | 3 | ||||
-rw-r--r-- | 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 |