fix: tweak windows powershell keybinding so prompt appears in the proper location

Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
Chapman Pendery
2023-10-08 00:25:08 -07:00
parent ebeca47cc0
commit 61de6b4ac4
+1 -1
View File
@@ -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()
}