# 启动
pwsh
# 设置配置文件
notepad $PROFILE
# code $PROFILE # 通过 vscode 打开
# 设置代理
function v2on {
$env:http_proxy = "http://127.0.0.1:7897"
$env:https_proxy = "http://127.0.0.1:7897"
Write-Output "Proxy set to http://127.0.0.1:7897"
}
# 取消代理
function v2off {
Remove-Item Env:http_proxy
Remove-Item Env:https_proxy
Write-Output "Proxy settings removed"
}