Adding Predictive IntelliSense to my Windows Terminal PowerShell Prompt with PSReadline

added by DotNetKicks
7/2/2021 11:59:22 PM

1038 Views

I've long said You should be customizing your PowerShell Prompt with PSReadLine. Go to your PowerShell prompt, and Install-Module PSReadLine -AllowPrerelease -Force Then, after running code $profile or nodepad $profile, add Import-Module PSReadLine Sure, but next, add these: Set-PSReadLineOption -PredictionSource HistorySet-PSReadLineOption -PredictionViewStyle ListViewSet-PSReadLineOption -EditMode Windows This means that PSReadLine (and hence, your prompt in general) will use your prompt history to make predictions on what you want to see next.


0 comments