- Open powershell
- Run
Install-Module PSReadLine -RequiredVersion 2.1.0
- Open your $profile document - type
$profile
to get its location. If you don't have a $profile document, runNew-Item -Type File -Force $PROFILE
first to create one - In a new line type
set-psreadlineoption -predictionsource history
Save the file, close powershell and reopen it. You should be all set!