将以下命令放在  ~/.bash_profile 或 ~/.zshrc ,启用的话执行 proxynet 即可~ 停用执行 unproxy

alias proxynet ='export http_proxy=http://127.0.0.1:12345; export https_proxy=http://127.0.0.1:12345'

alias unproxy='unset all_proxy; unset http_proxy; unset https_proxy'

 

当然前提是你有自己的代理啦~

相关文章:

  • 2021-08-12
  • 2021-11-06
  • 2022-12-23
  • 2021-12-19
  • 2022-02-07
  • 2021-09-08
  • 2022-12-23
猜你喜欢
  • 2022-01-16
  • 2021-06-29
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案