export HTTP_PROXY="http://127.0.0.1:8001";
export HTTPS_PROXY="http://127.0.0.1:8001"
source ~/.zshrc
或
export ALL_PROXY=socks5://127.0.0.1:1080
source ~/.zshrc
或
通过设置alias简写来简化操作,每次要用的时候输入 setproxy,不用了就 unsetproxy;
alias setproxy="export ALL_PROXY=socks5://127.0.0.1:8001"
alias unsetproxy="unset ALL_PROXY"
alias ip="curl cip.cc"
网友评论