众所周知,在中国,网络经常抽风。
如果使用 Bash:
vim ~/.bash_profile
Zsh 的话就是:
vim ~/.zshrc
然后加入:
alias proxy-on='export http_proxy=127.0.0.1:1081; export https_proxy=$http_proxy;'
alias proxy-off='unset http_proxy; unset https_proxy;'
使用的时候只需要用 proxy-on
开启,不用就直接 proxy-off
退出,很方便。
本文由 imbytecat 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: May 9, 2020 at 09:28 pm