title: Bundle commands not working due to proxy settings
body: <p>I have a rails application that I set to use a proxy so that I could update gems in my school's LAN.</p>
  
  <p>However now that I'm not using the school's network, when I do </p>
  
  <pre><code> bundle install
  </code></pre>
  
  <p>I get this error</p>
  
  <pre><code> Unfortunately, a fatal error has occurred. Please see the Bundler
   troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
   /home/me/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/uri/generic.rb:214:in `initialize': the scheme http does not accept registry part: cavs@students:cavsuon@proxy.uonbi.ac.ke:80 (or bad hostname?) (URI::InvalidURIError)
  </code></pre>
  
  <p>When I also do</p>
  
  <pre><code> gem update bundler
  </code></pre>
  
  <p>or</p>
  
  <pre><code> gem update --system
  </code></pre>
  
  <p>I get this error</p>
  
  <pre><code> ERROR:  While executing gem ... (URI::InvalidURIError)
  the scheme https does not accept registry part: cavs@students:cavsuon@proxy.uonbi.ac.ke:80 (or bad hostname?
  </code></pre>
  
  <p>I cannot recall how I set up my app to use proxy but even when I did it has never worked so I thought that it was never using a proxy in the first place.</p>
  
  <p>How can I unset this proxy configuration and set it again if I'm on my school's network</p>
  
  <p>Upon doing </p>
  
  <pre><code> echo $http_proxy
  </code></pre>
  
  <p>as suggested, I get </p>
  
  <pre><code> http://cavs@students:cavsuon@proxy.uonbi.ac.ke:80
  </code></pre>
  
  <p>How do I unset $http_proxy</p>