Create text files in directory /etc/paths.d/. the text file contains paths you want to add to the PATH variable at system level. The operating system will take care of the construction of the PATH variable. This approach is simple to maintain.
How to set global PATH variable under OSX?posted Oct 25, 2012, 4:40 AM by Marcel Baumann [ updated Oct 25, 2012, 4:40 AM ]