History feature?

Microsoft

I just accidentally discovered a new feature.  I pressed some key combination, and now whenever I type a command it shows my command history filtered by that string.  Example:

jaclegg_0-1669232759402.png

 

Example #2:

jaclegg_1-1669232774149.png

 

 

This is really cool and I'd like to know more.  I can't find anything on the net about (I've tried about 8 different bing searches).  Does anyone know what this is?

 

James

 

 

3 Replies

I guess it's just this in your profile:

Import-Module Az.Tools.Predictor
Set-PSReadLineOption -PredictionSource HistoryAndPlugin https://learn.microsoft.com/en-us/powershell/module/psreadline/about/about_psreadline?view=powershel...

Did this answer your question?

@Harm_Veenstra yes, pretty much.  Thank you.  The thing that had happened by accident was me pressing F2, which apparently enables history mode for the current PS session.  Thanks.