env: use curl and coreutils from /usr/local/opt if available

This is where Homebrew installs these alternatives to the system version
of these tools and I would like to have them override the defaults.
This commit is contained in:
Fernando Schauenburg 2022-06-30 21:41:17 +02:00
parent f441587f2f
commit 7d8ed1acee

View file

@ -19,8 +19,10 @@ while read -r dir; do
esac
done <<EOL
$LOCAL_PREFIX/bin
$LOCAL_PREFIX/opt/curl/bin
$LOCAL_PREFIX/opt/findutils/libexec/gnubin
$LOCAL_PREFIX/opt/gnu-sed/libexec/gnubin
$LOCAL_PREFIX/opt/coreutils/libexec/gnubin
$HOME/.local/bin
EOL
export PATH
@ -36,8 +38,10 @@ while read -r dir; do
esac
done <<EOL
$LOCAL_PREFIX/share/man
$LOCAL_PREFIX/opt/curl/share/man
$LOCAL_PREFIX/opt/findutils/libexec/gnuman
$LOCAL_PREFIX/opt/gnu-sed/libexec/gnuman
$LOCAL_PREFIX/opt/coreutils/libexec/gnuman
$HOME/.local/share/man
EOL
export MANPATH