Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 939
Joachim Avatar asked Jul 15 '15 08:07

Joachim


1 Answers

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.

like image 70
lcd047 Avatar answered Oct 22 '22 03:10

lcd047