Edit Environment Variables on Mac
Determine what shell is being used (zshrc, bash, …)
> echo $SHELL
Find all installed Java versions
> /usr/libexec/java_home -V
Edit ~/.zshrc or other shell related files with TextEdit
open ~/.zshrc (Open -a TextEdit ~/.zsh_profile)