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:
parent
f441587f2f
commit
7d8ed1acee
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue