终端设置代理

linux

# http
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
# git
export GIT_SSH_COMMAND='ssh -o ProxyCommand="nc -x 127.0.0.1:7890 %h %p"'

win

cmd

# http
set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890

power shell

# http
$env:http_proxy="http://127.0.0.1:7890"
$env:https_proxy="http://127.0.0.1:7890"