From 1df26deb6af1eaf8f7d921ae6432e67452640fc3 Mon Sep 17 00:00:00 2001 From: Marley Rae Date: Fri, 2 Feb 2024 18:52:21 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Improve=20Homebrew=20init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homebrew/brew.config.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homebrew/brew.config.fish b/homebrew/brew.config.fish index 0e6cf16..00fccaa 100644 --- a/homebrew/brew.config.fish +++ b/homebrew/brew.config.fish @@ -3,5 +3,9 @@ set -gx HOMEBREW_NO_ANALYTICS 1 if status --is-interactive - eval (/usr/local/Homebrew/bin/brew shellenv fish) + if [ "$(uname -m)" = arm64 ] + eval "$(/opt/homebrew/bin/brew shellenv fish)" + else if [ "$(uname -m)" = x86_64 ] + eval "$(/usr/local/bin/brew shellenv fish)" + end end