How to Add an Environment Variable at Startup in OS X macos In OS X how do I add an environment variable which loads at startup time? Best Answer You can edit the file at /etc/rc.common Add a line like the following: export NEWVARIABLE="my new environment variable" Related Solutions Related Question
Best Answer
You can edit the file at
/etc/rc.common
Add a line like the following: