Add new homebrew install locaiton to PATH
This commit is contained in:
parent
b95b365276
commit
efbfa23241
15
zshenv
15
zshenv
@ -22,10 +22,17 @@ INFOPATH=$HOME/.local/share/info:$INFOPATH
|
|||||||
|
|
||||||
# Add ccache compiler aliases to PATH and use XDG base dir paths
|
# Add ccache compiler aliases to PATH and use XDG base dir paths
|
||||||
if [ `uname` = Darwin ]; then
|
if [ `uname` = Darwin ]; then
|
||||||
[ -d /usr/local/opt/python/libexec/bin ] && \
|
if [ `uname -m` = arm64 ]; then
|
||||||
PATH=/usr/local/opt/python/libexec/bin:$PATH
|
homebrew_root=/opt/homebrew
|
||||||
[ -f /usr/local/bin/ccache ] && \
|
[ -d /opt/homebrew/bin ] && \
|
||||||
PATH=/usr/local/opt/ccache/libexec:$PATH
|
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
|
elif [ -f /usr/bin/ccache ]; then
|
||||||
if [ -d /usr/lib/ccache/bin ]; then
|
if [ -d /usr/lib/ccache/bin ]; then
|
||||||
PATH=/usr/lib/ccache/bin:$PATH
|
PATH=/usr/lib/ccache/bin:$PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user