/opt/local/bin/ ahead of
/usr/bin in the path, and so if the same program exists in both folders, the Macports-installed one takes precedence.
I'm unclear on how Homebrew manages this issue. Taking a concrete example, say I run
brew install git, I now have
> /usr/local/bin/git --version git version 2.14.2 > git --version git version 2.13.5 (Apple Git-94)
To use the more recent (git 2.14), it's tedious to use
/usr/local/bin/git. Also, giving more priority to
/usr/local/bin on my own may have undesirable side effects.
What's the standard way to run updated Homebrew programs when they collide with ones already on macOS? For
python I've seen that Homebrew avoids collisions by requiring users to type either
python3. This is less clear for the case of