Open klren0312 opened 5 months ago
function proxy_on() { export http_proxy="http://127.0.0.1:7890/" export https_proxy=$http_proxy export all_proxy=socks5://127.0.0.1:7890 echo -e "open proxy" } function proxy_off() { unset http_proxy unset https_proxy echo -e "close proxy" }
source ~/.zshrc # 开启代理 proxy_on
1. 修改 ~/.zshrc
2. 执行修改