%LocalAppData%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

powershell
$PROFILE
C:\Users\wyc\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Test-Path $PROFILE

注意power shell  需要使用utf8 with bom



bat  设置当前用户的开机启动脚本位置
管理权限powershell执行
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d "call D:\Documents\WindowsPowerShell\init.cmd" /f




[Environment]::SetEnvironmentVariable("http_proxy",  "http://127.0.0.1:7897", "User")
[Environment]::SetEnvironmentVariable("https_proxy", "http://127.0.0.1:7897", "User")
[Environment]::SetEnvironmentVariable("HTTP_PROXY",  "http://127.0.0.1:7897", "User")
[Environment]::SetEnvironmentVariable("HTTPS_PROXY", "http://127.0.0.1:7897", "User")

git config --global http.proxy http://127.0.0.1:7897
git config --global https.proxy http://127.0.0.1:7897
git config --global --get http.proxy
git config --global --get https.proxy


全局扩展配置 → 全局扩展脚本 → 订阅扩展配置 → 订阅扩展脚本