From 642bdb4ee9fc6a539e50827bfd1ef564d1e9d925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Thu, 25 Mar 2021 12:52:17 +0300 Subject: [PATCH] ZSH Fuzzy complete --- zsh/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 1293443e..af25f892 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -71,6 +71,11 @@ function x11-clip-wrap-widgets() { done } +# Better completion +zstyle ':completion:*' matcher-list '' \ + 'm:{a-z\-}={A-Z\_}' \ + 'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \ + 'r:|?=** m:{a-z\-}={A-Z\_}' local copy_widgets=( vi-yank vi-yank-eol vi-delete vi-backward-kill-word vi-change-whole-line @@ -79,5 +84,6 @@ local paste_widgets=( vi-put-{before,after} ) +# Use X11 Clipboard x11-clip-wrap-widgets copy $copy_widgets x11-clip-wrap-widgets paste $paste_widgets