From 61de6b4ac4e9f580f4d1a06ca3567b881276304b Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Sun, 8 Oct 2023 00:25:08 -0700 Subject: [PATCH] fix: tweak windows powershell keybinding so prompt appears in the proper location Signed-off-by: Chapman Pendery --- shell/key-bindings-powershell.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings-powershell.ps1 b/shell/key-bindings-powershell.ps1 index 4ae3443..633ad8f 100644 --- a/shell/key-bindings-powershell.ps1 +++ b/shell/key-bindings-powershell.ps1 @@ -10,6 +10,7 @@ Set-PSReadLineKeyHandler -Chord 'Ctrl+a' -ScriptBlock { [Microsoft.PowerShell.PSConsoleReadLine]::ClearKillRing() [Microsoft.PowerShell.PSConsoleReadLine]::BeginningOfLine() [Microsoft.PowerShell.PSConsoleReadLine]::KillLine() + [Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() $sa = "$env:USERPROFILE\AppData\Roaming\npm\node_modules\@microsoft\sa\build\index.js" if ($command) { @@ -23,5 +24,4 @@ Set-PSReadLineKeyHandler -Chord 'Ctrl+a' -ScriptBlock { if ($executedCommand) { [Microsoft.PowerShell.PSConsoleReadLine]::AddToHistory($executedCommand) } - [Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() } \ No newline at end of file