Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 276
Balu Avatar asked Feb 01 '26 21:02

Balu


1 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

like image 115
Satyam Kumar Avatar answered Feb 04 '26 14:02

Satyam Kumar