Files
coyote/scripts/shell-integration/integration.ps1
T
Dark-Alex-17 364cf29296
CI / All (ubuntu-latest) (push) Failing after 23s
CI / All (macos-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled
feat: rename Loki to Coyote
2026-05-27 12:47:32 -06:00

10 lines
407 B
PowerShell

Set-PSReadLineKeyHandler -Chord "alt+e" -ScriptBlock {
$_old = $null
[Microsoft.PowerShell.PSConsoleReadline]::GetBufferState([ref]$_old, [ref]$null)
if ($_old) {
[Microsoft.PowerShell.PSConsoleReadLine]::Insert('⌛')
$_new = (coyote -e $_old)
[Microsoft.PowerShell.PSConsoleReadLine]::DeleteLine()
[Microsoft.PowerShell.PSConsoleReadline]::Insert($_new)
}
}