0. 安装 polipo, ref :
https://github.com/jech/polipo2. 设置 polipo
```
https://github.com/huobazi/dotfiles/blob/master/polipo3. 切换脚本, ref
https://github.com/huobazi/dotfiles/blob/master/zshrc```bash
# proxy setting
function unproxy(){
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY all_proxy ALL_PROXY
echo -e "\033[0;32m Proxy off ...\033[0m"
curl
cip.cc}
function proxy() {
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
export http_proxy="http://127.0.0.1:1090" https_proxy=$http_proxy HTTP_PROXY=$http_proxy HTTPS_PROXY=$http_proxy all_proxy=$http_proxy ALL_PROXY=$http_proxy
echo -e "\033[0;32m Proxy on ...\033[0m"
curl
cip.cc}
```