因此,我尝试使用 Install-Module oh-my-posh -Scope CurrentUser
在Windows上安装 oh-my-posh,并输入 Get-PoshThemes
来查看可用的主题并进行下载。但是我收到了以下错误信息。
Get-PoshThemes : The term 'Get-PoshThemes' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ Get-PoshThemes
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-PoshThemes:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
有人能帮帮我吗?
Import-Module oh-my-posh
并将该命令添加到您的$Profile
中吗?请参见此链接。 - TheoImport-Module oh-my-posh
对我没有起作用。这可能是最新版本的问题--我正在使用6.42.3。等我有时间,我会尝试在oh-my-posh GitHub存储库上进行最新提交。 - Robbie Capps