My company provides an eclipse based development environment which needs some environment variables setting up for the underlying toolchain so multiple versions can be insta
alias start-eclipse='open /Applications/eclipse/Eclipse.app'
If you run start-eclipse from the command line, all env vars will be picked up. This way, you only need to maintain a single set of env vars across both command-line and eclipse environments.