MacOS Set Environment Variables | Mac OS Catalina | JAVA_HOME for macOS
From http://hathaway.cc/post/69201163472/how-to-edit-your-path-environment-variables-on-mac:Open Terminal.Run touch ~/.bash_profile; open ~/.bash_profile.In TextEdit, add export PATH=”$HOME/.rbenv/bin:$PATH”Save the . bash_profile file and Quit (Command + Q) Text Edit.Run source ~/.bash_profile.