summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xdist-assets/pkg-scripts/postinstall8
1 files changed, 2 insertions, 6 deletions
diff --git a/dist-assets/pkg-scripts/postinstall b/dist-assets/pkg-scripts/postinstall
index dfbbfe377c..8d5812debe 100755
--- a/dist-assets/pkg-scripts/postinstall
+++ b/dist-assets/pkg-scripts/postinstall
@@ -50,12 +50,8 @@ EOM
ZSH_COMPLETIONS_DIR="/usr/local/share/zsh/site-functions/"
-BREW_PREFIX=$(brew --prefix)
-if [[ "$?" -eq 0 ]]; then
- FISH_COMPLETIONS_DIR="${BREW_PREFIX}/share/fish/vendor_completions.d/"
- if [[ ! -d "$FISH_COMPLETIONS_DIR" ]]; then
- FISH_COMPLETIONS_DIR="/usr/local/share/fish/vendor_completions.d/"
- fi
+if [[ -d "/opt/homebrew/share/fish/vendor_completions.d/" ]]; then
+ FISH_COMPLETIONS_DIR="/opt/homebrew/share/fish/vendor_completions.d/"
else
FISH_COMPLETIONS_DIR="/usr/local/share/fish/vendor_completions.d/"
fi