From 9713982a79af16bce928262aedfaee11c0fdbb0a Mon Sep 17 00:00:00 2001 From: eeemsi Date: Sat, 6 May 2023 16:03:23 +0200 Subject: [PATCH] feat (zshrc): add case-insensitive, partial-word and then substring completion --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc b/zshrc index e9d181d..f80f16b 100644 --- a/zshrc +++ b/zshrc @@ -17,6 +17,9 @@ autoload -U compinit; compinit # retrieve information from version control systems autoload -Uz vcs_info +# Case-insensitive, partial-word and then substring completion +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' + # Offers menu when > selected elements appear zstyle ':completion:*' menu select @@ -67,6 +70,7 @@ alias gc='g commit' alias gd='g diff' alias glog='g log --graph --oneline' alias gst='g status --short --branch' + # update all repositories within the current directory alias update_repositories='find . -name ".git" -type d | xargs -P4 -I{} git --git-dir={} --work-tree={} pull'