Fix new-style completions.

master
Icedream 2022-06-13 15:29:54 +02:00
parent 1808d841a7
commit 616bad2615
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 6 additions and 1 deletions

View File

@ -69,8 +69,13 @@ log() {
section "compat: bash completion" section "compat: bash completion"
if [ $ZSH_COMPAT_BASH_COMPLETION -gt 0 ] || [ $ZSH_PIPX -gt 0 ]; then if [ $ZSH_COMPAT_BASH_COMPLETION -gt 0 ] || [ $ZSH_PIPX -gt 0 ]; then
log "Enabling compatibility for bash completion scripts..." log "Enabling compatibility for bash completion scripts..."
autoload -U bashcompinit autoload -Uz bashcompinit compinit
bashcompinit bashcompinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
fpath=(/usr/local/share/zsh-completions $fpath)
fi fi
section_end section_end