Created
September 23, 2022 08:15
-
-
Save hihanley/b63b0643bfdd07a8f24880140aa6e412 to your computer and use it in GitHub Desktop.
PowerShell Complete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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