‹ 返回笔记 Esc·

PowerShell 命令

PowerShell 查询命令位置 --- PowerShell 代理 此设置只对当前 PowerShell 会话生效,关闭窗口就失效了。 清除环境变量 将上述命令写入你的 PowerShell 配置…

PowerShell 查询命令位置

1where.exe pnpm

PowerShell 代理

1$env:HTTP_PROXY = "http://127.0.0.1:7897"
2$env:HTTPS_PROXY = "http://127.0.0.1:7897"

此设置只对当前 PowerShell 会话生效,关闭窗口就失效了。

1Remove-Item Env:HTTP_PROXY
2Remove-Item Env:HTTPS_PROXY

清除环境变量

1notepad $PROFILE

将上述命令写入你的 PowerShell 配置文件 Microsoft.PowerShell_profile.ps1

1curl https://www.google.com