I have a requirement where I need to set a custom environment variable called CLUSTER_ENV = '@fooURL'
The steps I have followed are:
- Open terminal, open 
bash_profileand saveCLUSTER_ENV='@foo'. When I doecho $CLUSTER_ENV, I get blank output. - I did the same thing in the 
bashrcfile and in this case, the$CLUSTER_ENVshows the value only when I run it in the same terminal window. 
Which is the best or recommended way to permanently set the environment variable on a Mac? Im running El Capitan.
I have gone through these links for reference:
http://osxdaily.com/2015/07/28/set-enviornment-variables-mac-os-x/