Something went wrong. Try again.
An extract of my PowerShell config for nicer completions
Something went wrong. Try again.
687 B · 10 lines · Created 10mo ago
1234567891011# 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 HistoryAndPluginSet-PSReadLineKeyHandler -Chord Tab -Function CompleteSet-PSReadLineKeyHandler -Chord Ctrl+d -Function DeleteCharOrExitSet-PSReadLineKeyHandler -Chord UpArrow -Function HistorySearchBackwardSet-PSReadLineKeyHandler -Chord DownArrow -Function HistorySearchForwardSet-PSReadLineKeyHandler -Chord Shift+RightArrow -Function AcceptNextSuggestionWord