Installing PSReadLine for Predictive Intellisense

less than 1 minute read

You can read all about PSReadLine here: About PSReadLine, the feature I want most is the predictive intellisense, you set your PowerShell command history as the source so that you can prioritize commands you use frequently.

I’m using PowerShell 7.2 from the Windows Store.

Install

code powershell Install-Module -Name PSReadLine -AllowPrerelease -Force Set-PSReadLineOption -PredictionSource History For the functionality i wanted, these 2 lines was all it took

PSReadLine

I will also need to add Set-PSReadLineOption -PredictionSource History to my profile.ps1, so that it runs every time i start PowerShell

Conclusion

For Day 16 I enabled PSReadLine, this should be a useful addition at home and work.

Leave a comment