Config environment variables directly in .bashrc (linux) and .launchctl.config (osx) config files

This is a way which I found to config variables permanently in some
OSs.

In the current methods, the environment variables are lost after reboot
in OSs like OSX and Ubuntu.

To test if this PR, I recommend rename .bashrc or .launchctl.config to
something like $ENV{HOME}/test.txt