I was listening to a podcast last week about PowerShell, when one of the hosts mentioned having to ‘up arrow’ back through your history to find a command you wanted to rerun. This made me realise that I should write this quick post on using PSReadLine’s interactive search function. This tip is a serious time saver and I rely on it heavily.
The great news is that if you are using Windows PowerShell on Windows 10 or if you’re using PowerShell 6+, PSReadLine is already installed and you can immediately start using this tip. If you don’t have the module though, it’s easy enough to install from the PowerShell Gallery:
Read on to learn how to use it.