From 562903bb539ac1e4a337477e62870f49f738899b Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 24 Sep 2024 08:19:22 +0100 Subject: [PATCH] Remove Tab Completion in PowerShell --- roles/home-cli/files/Microsoft.PowerShell_profile.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 index 3e13281..c3ee7f0 100644 --- a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 +++ b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 @@ -98,12 +98,12 @@ Set-PSReadLineOption -BellStyle None Set-PSReadLineOption -EditMode Emacs Set-PSReadLineOption -HistorySaveStyle SaveNothing -Set-PSReadLineKeyHandler -Key Tab -Function Complete -Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock { +Remove-PSReadLineKeyHandler -Chord Tab +Set-PSReadLineKeyHandler -Chord UpArrow -ScriptBlock { [Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward() [Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine() } -Set-PSReadLineKeyHandler -Key DownArrow -ScriptBlock { +Set-PSReadLineKeyHandler -Chord DownArrow -ScriptBlock { [Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchForward() [Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine() }