# This is using PowerShell Core (pwsh.exe not powershell.exe), with the included PSReadline module # History suggestions were added to PSReadline in v2.2.0 # https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-7.5#-predictionsource Set-PSReadLineOption -PredictionSource HistoryAndPlugin Set-PSReadLineKeyHandler -Chord Tab -Function Complete Set-PSReadLineKeyHandler -Chord Ctrl+d -Function DeleteCharOrExit Set-PSReadLineKeyHandler -Chord UpArrow -Function HistorySearchBackward Set-PSReadLineKeyHandler -Chord DownArrow -Function HistorySearchForward Set-PSReadLineKeyHandler -Chord Shift+RightArrow -Function AcceptNextSuggestionWord