配置curl,wget,pip代理
在~/.zshrc 中添加setproxy
和 unsetproxy
, 在需要时启用或者禁用
vim ~/.zshrc
##添加如下指令
alias setproxy="export http_proxy=http://127.0.0.1:41091; export https_proxy=http://127.0.0.1:41091; echo 'HTTP Proxy on';"
alias unsetproxy="unset http_proxy; unset https_proxy; echo 'HTTP Proxy off';"
## update
source ~/.zshrc
配置git 代理
##禁用ssl验证
git config --global http.sslVerify false
### 设置http代理
git config --global http.proxy http://127.0.0.1:41091
## 设置https代理
git config --global https.proxy http://127.0.0.1:41091