I need to set the PATH environment variable in OSX in a particular order (i.e. with /usr/local/bin first in line).
The recommended way to set PATH variables seems to be the
/etc/paths files and the
/etc/paths.d directory which work but automatically rearrange the order of the specified paths.
I could override this in my
.profile but I get the suspicion that programs such as Homebrew do not pick up on user defined environment variables