Windows 终端 - 通过 oh-my-posh/posh-git Set-Theme 错误自定义 PowerShell?
我按照微软链接的确切教程:在此处输入链接描述,视频链接:在此处输入链接描述
我已经安装了 Posh-Git 和 Oh-My-Posh:通过这个代码 -
安装模块 posh-git -Scope CurrentUser
安装模块 oh-my-posh -Scope CurrentUser
我已经安装了 PSReadLine: 通过这个代码 -
安装模块 -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
我还通过在我的 PowerShell 配置文件中键入代码 $PROFILE并复制/粘贴此代码来创建 Microsoft.PowerShell_profile.ps1 文件:
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Run Code Online (Sandbox Code Playgroud)
但我收到此错误:
