summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2017-04-25 15:01:34 +0200
committerAlan Pearce2017-04-25 15:01:34 +0200
commitc25428de28d56b9d0c7c271380d6cfc1cc84fcf8 (patch)
tree26bcc51b14e3bc25aef4fa483b70eaa5227404fb /zsh
parent864aee5a0e4f7574b160e68a9767df9687ffcaa2 (diff)
downloadnixfiles-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
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc2
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] ]]