【发布时间】:2022-01-16 22:45:32
【问题描述】:
所以我尝试安装 oh-my-posh for windows
Install-Module oh-my-posh -Scope CurrentUser
并输入
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中?见this -
我遇到了同样的问题...@Theo
Import-Module oh-my-posh没有为我解决这个问题。这可能是最新版本的问题——我使用的是 6.42.3。当我得到一秒钟的时间,我会在 oh-my-posh GitHub repo 上尝试最新的提交。
标签: windows powershell oh-my-posh