win10

powershell

code $profile
# Microsoft.PowerShell_profile.ps1
function proxy {
    $env:HTTP_PROXY="http://127.0.0.1:7890"
    $env:HTTPS_PROXY="http://127.0.0.1:7890"
}
function unproxy {
    $env:HTTP_PROXY=""
    $env:HTTPS_PROXY=""
}