I am trying to setup a environment variable in OS X Yosemite. i am using zsh. i added
export NEW_HOME=/Users/k/app/
and then loaded the file with
source .profile or source .bash_profile
but when i restart the terminal it goes away. Then i added this to .zshrc file. It works. I can get the environment variable from terminal now. But the java application which requires this ENV value is not getting.
I really do not understand whats going on. Can u help me?