安装与更新

现在的教程没啥意思,直接给Trae发一条指令(Prompt)。


请帮我在当前这台 Windows 电脑上完成以下 PowerShell 环境配置:

1. 用 winget 安装 PowerShell 7 LTS(如果已是最新则跳过)
2. 用 Install-PSResource 安装以下模块:PSReadLine, ImportExcel, Terminal-Icons, PSWriteHTML, Pester, CompletionPredictor
3. 写入 $PROFILE 文件,包含:
   - PSReadLine 历史记录/语法高亮/智能补全配置
   - Terminal-Icons 和 CompletionPredictor 自动加载
   - 别名:which=gcm, grep=sls, touch=ni
   - 快捷函数:Edit-Profile, Reload-Profile, Get-DirSize
   - 启动欢迎信息
4. 将 PowerShell 模块路径添加到用户 PATH 环境变量

全部操作完验证一遍,并告诉我最终结果。