I'm trying to develop using Eclipse/Maven on my Mac and while setting environment variables there is no .bash_profile. I do ls -a and still not there. I see a .bash_history and .bash_sessions. Where am I supposed to set my JAVA_HOME and PATH?
Thank you!
For anyone else stumbling up on this after Mac Catalina,
Starting CATALINA the default shell is zsh. The profile file name for zsh is ~/.zprofile.
To setup bash as your default:
In your terminal:
touch ~/.bash_profile; open ~/.bash_profile
Then make your edits and save. This is generic so make sure your path is correct in the above example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With