vi ~/.zshrc
# where proxy
proxy () {
export http_proxy="http://127.0.0.1:8888"
export https_proxy="http://127.0.0.1:8888"
echo "HTTP Proxy on"
}
# where noproxy
noproxy () {
unset http_proxy
unset https_proxy
echo "HTTP Proxy off"
}
vi ~/.zshrc
# where proxy
proxy () {
export http_proxy="http://127.0.0.1:8888"
export https_proxy="http://127.0.0.1:8888"
echo "HTTP Proxy on"
}
# where noproxy
noproxy () {
unset http_proxy
unset https_proxy
echo "HTTP Proxy off"
}
本文标题:设置zsh代理
本文链接:https://www.haomeiwen.com/subject/kxkirxtx.html
网友评论