7

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?

4

1 回答 1

10

如何在.vimrcfor Vundle 中进行设置,以便所有 git 事物都以此代理脚本为前缀?

你没有。相反,您要做的是git通过代理:

git config --global http.proxy http://username:password@proxy.example.com:8080

您还可以将环境变量设置http_proxy为相同的内容:

export http_proxy='http://username:password@proxy.example.com:8080'

https_proxy如果你这样做,你可能还需要一个。

于 2015-07-15T10:06:32.517 回答