配置 Powershell 命令行代理 | anuoua 的
code $profile
function setproxy {
Set-Item Env:http_proxy "http://127.0.0.1:7890" # 代理地址
Set-Item Env:https_proxy "http://127.0.0.1:7890" # 代理地址
}
function unsetproxy {
Remove-Item Env:http_proxy
Remove-Item Env:https_proxy
}