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() }