Use GNU tools on MacOS if they are installed

This commit is contained in:
Tony Blyler 2022-08-22 21:52:38 -04:00
parent 70afacb60a
commit f55005deca

View file

@ -21,6 +21,11 @@ if [ "$(uname)" = "Darwin" ]; then
if [ -x /opt/homebrew/bin/brew ]; then if [ -x /opt/homebrew/bin/brew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)"
fi fi
# Use GNU tools if they're installed :D
for d in "${HOMEBREW_PREFIX}/opt"/*/libexec/gnubin; do
export PATH="$d:$PATH"
done
fi fi
if [ -d "${HOME}/bin" ]; then if [ -d "${HOME}/bin" ]; then