小编Bip*_* Hf的帖子

Get-PSReadLineKeyHandler:找不到与参数名称“Key”匹配的参数。《Oh My Posh》中的这个是什么?

Get-PSReadLineKeyHandler : A parameter cannot be found that matches parameter name 'Key'.
At line:380 char:43
+             if ((Get-PSReadLineKeyHandler -Key Spacebar).Function -eq ...
+                                           ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-PSReadLineKeyHandler], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.GetKeyHandlerCommand

Get-PSReadLineKeyHandler : A parameter cannot be found that matches parameter name 'Key'.
At line:383 char:43
+             if ((Get-PSReadLineKeyHandler -Key Enter).Function -eq 'O ...
+                                           ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-PSReadLineKeyHandler], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.GetKeyHandlerCommand
Run Code Online (Sandbox Code Playgroud)

每当我打开 powershell 时都会出现此信息。我可以做什么来解决这个问题?

寻找解决方案。

powershell psreadline oh-my-posh

4
推荐指数
2
解决办法
7586
查看次数

标签 统计

oh-my-posh ×1

powershell ×1

psreadline ×1