feat (zshrc): add case-insensitive, partial-word and then substring completion

This commit is contained in:
eeemsi 2023-05-06 16:03:23 +02:00
parent f092a2a747
commit 9713982a79
1 changed files with 4 additions and 0 deletions

4
zshrc
View File

@ -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'