PowerShell

1
2
3
# 当前 shell 的代理
$env:HTTP_PROXY="http://127.0.0.1:1080"
$env:HTTPS_PROXY="http://127.0.0.1:1080"

cmd

1
2
3
# 当前 shell 的代理
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080