This is script I used to set up my development environment for OpenMDAO and Dymos on Mac OS.
See the environment variables near the top for user-specific settings. In particular, beware that the Conda environment specified there will be deleted and then rebuilt.