实现方式1:
vi ~/.zshrc

alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1086"
alias unsetproxy="unset ALL_PROXY"
setproxy

实现方式2

alias goproxy='export http_proxy=http://127.0.0.1:1087 https_proxy=http://127.0.0.1:1087'
alias disproxy='unset http_proxy https_proxy'
goproxy

最后执行 source ~/.zshrc

相关文章:

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