Set-PSReadLineOption: A parameter cannot be found that matches parameter name 'PredictionViewStyle'

Viewed 2514

I'm trying to change the -PredictionViewStyle option of PSReadline, but I got the error "Set-PSReadLineOption: A parameter cannot be found that matches parameter name 'PredictionViewStyle'."

It's a fresh install and Set-PSReadLineOption -PredictionSource History works.

Any suggestion, please?

2 Answers

Open PowerShell

pwsh.exe -noprofile -command "Install-Module PSReadLine -Force -AllowPrerelease -SkipPublisherCheck"

Install-Module PSReadLine -Force

notepad $profile

Set-PSReadLineOption -PredictionSource History

Set-PSReadLineOption -PredictionViewStyle ListView

Save (cntrl + S)

Restart Terminal

Related