From 66cc4fc9e2160ffd5bbccfee31ac95c5103dd674 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 25 Mar 2023 14:00:31 +0100 Subject: [PATCH] Only add arm homebrew dir when uname matches --- .profile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.profile b/.profile index 455f467..76edb5a 100644 --- a/.profile +++ b/.profile @@ -2,13 +2,14 @@ # over system-provided programs export PATH="/usr/local/bin:$PATH" +# Add homebrew arm64 install path if applicable +if [[ $(uname -m) == "arm64" ]]; then + export PATH="/opt/homebrew/bin:$PATH" +fi + # MacPorts Installer rddition on 2022-10-31_at_23:07:29: adding an appropriate PATH variable for use with MacPorts. export PATH="/opt/local/bin:/opt/local/sbin:$PATH" -# Homebrew add executable bin file directory -# to PATH variable. -export PATH="/opt/homebrew/bin:$PATH" - # Setting PATH for Python 3.11 # The original version is saved in .zprofile.pysave # PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH"