You've already forked inshellisense
mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-04-22 15:25:33 -07:00
8f75afc2f1
* 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>
8 lines
226 B
PowerShell
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
|
|
} |