Powershell更新安装.md 1.5 KB


notion-id: a8115064-bf4d-4aba-b4b4-55cc5d7f1f

[!note]+ Windows Terminal/Powershell 设置自动补全, 智能提示 https://blog.csdn.net/weixin_42081389/article/details/124392018

注意PS版本为共存模式,可以修改环境变量,修改!删除旧版本具体方法研究中 可使用windows10manager或者ContextMenuManager修改开始菜单 https://github.com/BluePointLilac/ContextMenuManager 查看PS版本 $PSVersionTable.PSVersion 安装PS7

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"

https://learn.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3 注意要点: 安装Powershell7需要重新配置美化教程Oh-my-zsh【直接跳转到配置主题查看】 注意:如果输入notepad $PROFILE 没有创建选项,找不到路径 手动创建,如果安装VSCODE,code. $PROFILE 直接使用VSCODE创建 C:\Users\SL\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 PowerShell7路径 C:\Users\SL\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 PowerShell原版路径 使用winget安装时如果出现错误使用指令强制更新winget source reset --force