Setting Environment Variables on Mac

For zsh (default on macOS Catalina+)

nano ~/.zprofile

Add your variables:

export VARIABLE=VALUE

Apply changes:

source ~/.zprofile

For bash

nano ~/.bash_profile

Add your variables:

export VARIABLE=VALUE

Apply changes:

source ~/.bash_profile