Time Was setting environment variables and the PATH on a Mac running OSX was just like any other *IX. However with successive OS releases Apple have changed how this works (more than once) and generally made it more difficult 😢 This article discusses how I go about setting environment variables on Mojave and Catalina. Why does this matter? MacOS doesn't add /usr/local/bin to the PATH by default, which is unfortunate as most *IX-style programs you build yourself will be installed in there. If you only ever launch stuff from Terminal, all you have to do is set environment variables and the path from Shell startup files in the time immemorial fashion. However, this doesn't help with native Mac Apps like Emacs, which aren't launched from a shell and where you may still want to access custom environment variables and programs in /usr/local/bin . Setting the PATH In the past you could add to the path via /etc/paths (or paths.d ), however this no longer works...
Comments
Post a Comment