diff options
Diffstat (limited to 'dist-assets/pkg-scripts')
| -rwxr-xr-x | dist-assets/pkg-scripts/postinstall | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dist-assets/pkg-scripts/postinstall b/dist-assets/pkg-scripts/postinstall index 6f6f6f9904..2c067efab1 100755 --- a/dist-assets/pkg-scripts/postinstall +++ b/dist-assets/pkg-scripts/postinstall @@ -62,7 +62,11 @@ DAEMON_PLIST=$(cat <<-EOM EOM ) -ZSH_COMPLETIONS_DIR="/usr/local/share/zsh/site-functions/" +if [[ -d "/opt/homebrew/share/zsh/site-functions/" ]]; then + ZSH_COMPLETIONS_DIR="/opt/homebrew/share/zsh/site-functions/" +else + ZSH_COMPLETIONS_DIR="/usr/local/share/zsh/site-functions/" +fi if [[ -d "/opt/homebrew/share/fish/vendor_completions.d/" ]]; then FISH_COMPLETIONS_DIR="/opt/homebrew/share/fish/vendor_completions.d/" |
