Remove Tab Completion in PowerShell

This commit is contained in:
Anthony Rose 2024-09-24 08:19:22 +01:00
parent 3cf1277f5c
commit 562903bb53

View file

@ -98,12 +98,12 @@ Set-PSReadLineOption -BellStyle None
Set-PSReadLineOption -EditMode Emacs Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineOption -HistorySaveStyle SaveNothing Set-PSReadLineOption -HistorySaveStyle SaveNothing
Set-PSReadLineKeyHandler -Key Tab -Function Complete Remove-PSReadLineKeyHandler -Chord Tab
Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock { Set-PSReadLineKeyHandler -Chord UpArrow -ScriptBlock {
[Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward() [Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward()
[Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine() [Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine()
} }
Set-PSReadLineKeyHandler -Key DownArrow -ScriptBlock { Set-PSReadLineKeyHandler -Chord DownArrow -ScriptBlock {
[Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchForward() [Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchForward()
[Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine() [Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine()
} }