格式如下:
1
2
3
| export https_proxy=http://127.0.0.1:Port;
export http_proxy=http://127.0.0.1:Port;
export all_proxy='socks5://127.0.0.1:Port'
|
将以上添加到.bashrc 或者 .zshrc 文件里。
1
| alias setproxy="export ALL_PROXY=socks5://127.0.0.1:15386" alias unsetproxy="unset ALL_PROXY"
|