diff options
author | Alan Pearce | 2017-04-25 15:01:34 +0200 |
---|---|---|
committer | Alan Pearce | 2017-04-25 15:01:34 +0200 |
commit | c25428de28d56b9d0c7c271380d6cfc1cc84fcf8 (patch) | |
tree | 26bcc51b14e3bc25aef4fa483b70eaa5227404fb | |
parent | 864aee5a0e4f7574b160e68a9767df9687ffcaa2 (diff) | |
download | nixfiles-c25428de28d56b9d0c7c271380d6cfc1cc84fcf8.tar.lz nixfiles-c25428de28d56b9d0c7c271380d6cfc1cc84fcf8.tar.zst nixfiles-c25428de28d56b9d0c7c271380d6cfc1cc84fcf8.zip |
zsh: Make matching fuzzier
It will now complete from the right, if there are no leftward completions, and then from both sides if necessary
-rw-r--r-- | zsh/.config/zsh/.zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 21a52b15..207bff79 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -116,7 +116,7 @@ zle -C hist-complete complete-word _generic zstyle ':completion:hist-complete:*' completer _history bindkey '\e ' hist-complete -zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' '+m:{A-Z}={a-z}' +zstyle ':completion:*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}' 'r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' completer _expand _complete _match if [[ -z $SSH_AUTH_SOCK && $commands[ssh-agent] ]] |