Use GNU tools on MacOS if they are installed
This commit is contained in:
parent
70afacb60a
commit
f55005deca
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue