title: Create linux environment variable using vagrant provisioner
body: <p>I've got vagrant running Ubuntu for development purposes.  I've used a shell script provisioner to download/install my dependencies and create some aliases, but I've hit a wall in terms of using the provisioner to create environment variables (which are used for several flags within my project).  Originally I had something like:</p>
  
  <pre><code>export MY_VAR='value'
  </code></pre>
  
  <p>Into my provisioner script, but then found out that you can't <a href="https://stackoverflow.com/questions/8604462/setting-environment-variable-in-shell-script-does-not-make-it-visible-to-the-she">add environment variables</a> from inside a shell script by running it normally.  Fair enough, so I tried instead changing my line of the Vagrantfile to:</p>
  
  <pre><code>config.vm.provision "shell", inline: “source setup.sh"
  </code></pre>
  
  <p>Which didn't solve the problem.  Environment variables still weren't there.  I tried adding the exports directly as an inline:</p>
  
  <pre><code>config.vm.provision "shell", inline: “export MY_VAR='value'"
  </code></pre>
  
  <p>No luck.  Still no global environment when I ssh'ed in.  Is there a way to use the shell script to set a bash environment variable, or is it time to throw in the towel on shell provisioners and learn chef?</p>