Nov 23 2022 11:47 AM
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:
Example #2:
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
Nov 24 2022 04:17 AM - edited Nov 24 2022 04:25 AM
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...
Nov 30 2022 12:23 AM
@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.