From efbfa23241d1dc10fb2fd75b26b62ac7297a5966 Mon Sep 17 00:00:00 2001 From: Benie Date: Fri, 9 Dec 2022 15:03:27 +0000 Subject: [PATCH] Add new homebrew install locaiton to PATH --- zshenv | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/zshenv b/zshenv index 46cf512..662c9a8 100644 --- a/zshenv +++ b/zshenv @@ -22,10 +22,17 @@ INFOPATH=$HOME/.local/share/info:$INFOPATH # Add ccache compiler aliases to PATH and use XDG base dir paths if [ `uname` = Darwin ]; then - [ -d /usr/local/opt/python/libexec/bin ] && \ - PATH=/usr/local/opt/python/libexec/bin:$PATH - [ -f /usr/local/bin/ccache ] && \ - PATH=/usr/local/opt/ccache/libexec:$PATH + if [ `uname -m` = arm64 ]; then + homebrew_root=/opt/homebrew + [ -d /opt/homebrew/bin ] && \ + PATH=$homebrew_root/bin:$PATH + else + homebrew_root=/usr/local + fi + [ -d $homebrew_root/opt/python/libexec/bin ] && \ + PATH=$homebrew_root/opt/python/libexec/bin:$PATH + [ -f $homebrew_root/bin/ccache ] && \ + PATH=$homebrew_root/opt/ccache/libexec:$PATH elif [ -f /usr/bin/ccache ]; then if [ -d /usr/lib/ccache/bin ]; then PATH=/usr/lib/ccache/bin:$PATH