Files
inshellisense/shell/shellIntegration.ps1
T
Chapman Pendery 8f75afc2f1 fix: add shell integration support without requiring user installation (#101)
* fix: add shell integration support without requiring user installation

Signed-off-by: Chapman Pendery <cpendery@vt.edu>

* fix: style lints

Signed-off-by: Chapman Pendery <cpendery@vt.edu>

* fix: failing tests

Signed-off-by: Chapman Pendery <cpendery@vt.edu>

---------

Signed-off-by: Chapman Pendery <cpendery@vt.edu>
2023-12-05 12:24:48 -08:00

8 lines
226 B
PowerShell

$Global:__IsOriginalPrompt = $function:Prompt
function Global:Prompt() {
$Result = "$([char]0x1b)]6973;PS`a"
$Result += $Global:__IsOriginalPrompt.Invoke()
$Result += "$([char]0x1b)]6973;PE`a"
return $Result
}