PowerShell 配置
下载最新的 PowerShell https://github.com/PowerShell/PowerShell/releases/latest
安装 Windows Terminal
winget install JanDeDobbeleer.OhMyPosh -s winget
运行
oh-my-posh init powershell
得到激活命令
(@(& 'C:/Program Files (x86)/oh-my-posh/bin/oh-my-posh.exe' init powershell --config='' --print) -join "`n") | Invoke-Expression
编辑启动脚本
code $Profile
再将上面的激活命令写进启动脚本
最后更新:
April 15, 2023