参考资料:https://github.com/mrdulin/blog/issues/18

#终端代理
alias proxy='ALL_PROXY=socks5://127.0.0.1:1086'
alias unproxy='unset all_proxy'

ss为例,端口对应即可 20180531310751.png

➜  ~ vim .zshrc
➜  ~ source .zshrc
➜  ~ curl ip.cn
当前 IP:35.229.181.10 来自:台湾省 Google