title: How do I set bash environment variables from a script?
body: <p>I have some proxy settings that I only occasionally want to turn on, so I don't want to put them in my <code>~/.bash_profile</code>. I tried putting them directly in <code>~/bin/set_proxy_env.sh</code>, adding <code>~/bin</code> to my <code>PATH</code>, and <code>chmod +x</code>ing the script but though the script runs, the variables don't stick in my shell. Does anyone know how to get them to stick around for the rest of the shell session?</p>