From 616bad261580a976f331c77d24ce43f91294540b Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 13 Jun 2022 15:29:54 +0200 Subject: [PATCH] Fix new-style completions. --- home/dotfiles/zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/dotfiles/zshrc b/home/dotfiles/zshrc index 5408bd3..1612e38 100644 --- a/home/dotfiles/zshrc +++ b/home/dotfiles/zshrc @@ -69,8 +69,13 @@ log() { section "compat: bash completion" if [ $ZSH_COMPAT_BASH_COMPLETION -gt 0 ] || [ $ZSH_PIPX -gt 0 ]; then log "Enabling compatibility for bash completion scripts..." - autoload -U bashcompinit + autoload -Uz bashcompinit compinit + bashcompinit + + compinit + zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' + fpath=(/usr/local/share/zsh-completions $fpath) fi section_end