From: Alexander Barton Date: Wed, 8 Dec 2021 21:10:26 +0000 (+0100) Subject: homebrew: Fix detection of Homebrew command completions X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ax-zsh.git;a=commitdiff_plain;h=ea232993243e7616292e0121693d8fe8b98ea6b3 homebrew: Fix detection of Homebrew command completions --- diff --git a/plugins/homebrew/homebrew.zprofile b/plugins/homebrew/homebrew.zprofile index ccab0b7..84cb740 100644 --- a/plugins/homebrew/homebrew.zprofile +++ b/plugins/homebrew/homebrew.zprofile @@ -6,7 +6,13 @@ eval "$(brew shellenv)" -[[ -d "$HOMEBREW_PREIX/share/zsh-completions" ]] \ - && axzsh_fpath+=("$HOMEBREW_PREFIX/share/zsh-completions") +for dir ( + "$HOMEBREW_PREFIX/share/zsh-completions" + "$HOMEBREW_PREFIX/share/zsh/site-functions" +); do + [[ -d "$dir" ]] && axzsh_fpath+=("$dir") + +done +unset dir return 0