在 Proxy 后面使用 Vundle
Using Vundle behind Proxy
我们有这个简洁的小脚本在工作,让我们可以通过 linux 环境中的代理使用互联网。例如
withproxy git clone https://github.com/VundleVim/Vundle.vim.git
工作正常,甚至不提示我输入用户名和密码。
如何在 Vundle 的 .vimrc
中进行设置,以便所有 git 事物都以此代理脚本为前缀?
How do I set this up within the .vimrc
for Vundle so that all the git things are prefixed by this proxy script?
你不知道。您要做的是让 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
。
我们有这个简洁的小脚本在工作,让我们可以通过 linux 环境中的代理使用互联网。例如
withproxy git clone https://github.com/VundleVim/Vundle.vim.git
工作正常,甚至不提示我输入用户名和密码。
如何在 Vundle 的 .vimrc
中进行设置,以便所有 git 事物都以此代理脚本为前缀?
How do I set this up within the
.vimrc
for Vundle so that all the git things are prefixed by this proxy script?
你不知道。您要做的是让 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
。