Skip to content

Instantly share code, notes, and snippets.

@hihanley
Created September 23, 2022 08:15
Show Gist options
  • Save hihanley/b63b0643bfdd07a8f24880140aa6e412 to your computer and use it in GitHub Desktop.
Save hihanley/b63b0643bfdd07a8f24880140aa6e412 to your computer and use it in GitHub Desktop.
PowerShell Complete
Import-Module PSReadLine
# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
# Autocompleteion for Arrow keys
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
$PSReadLineOptions = @{
PredictionSource = 'History'
HistoryNoDuplicates = $true
HistorySearchCursorMovesToEnd = $true
ShowToolTips = $true
}
Set-PSReadLineOption @PSReadLineOptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment