Joachim
Joachim

Reputation: 3270

Using Vundle behind Proxy

We have have this neat little script at work that let's us use the internet over proxy from the linux enviroment. For example

withproxy git clone https://github.com/VundleVim/Vundle.vim.git

works just fine and doesn't even prompt me for my username and password.

How do I set this up within the .vimrc for Vundle so that all the git things are prefixed by this proxy script?

Upvotes: 8

Views: 6930

Answers (1)

lcd047
lcd047

Reputation: 5861

How do I set this up within the .vimrc for Vundle so that all the git things are prefixed by this proxy script?

You don't. What you do instead is make git go through the proxy:

git config --global http.proxy http://username:[email protected]:8080

You can also set the environment variable http_proxy to the same thing:

export http_proxy='http://username:[email protected]:8080'

You might also need a https_proxy if you do it this way.

Upvotes: 12

Related Questions