mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-08-05 13:43:30 -07:00
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:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user