Update shell-integration.md

Add missing line to powershell starship OSC 7 integration.
The variable for $ansi_escape was missing.
This commit is contained in:
Derek Lomax authored and Wez Furlong committed 2023-03-23 10:27:57 -07:00
1 parent 57a1b7f2ef
commit 16f5d116e7
1 file changed
+1
+1
View File
@@ -134,6 +134,7 @@ $prompt = ""
function Invoke-Starship-PreCommand {
$current_location = $executionContext.SessionState.Path.CurrentLocation
if ($current_location.Provider.Name -eq "FileSystem") {
$ansi_escape = [char]27
$provider_path = $current_location.ProviderPath -replace "\\", "/"
$prompt = "$ansi_escape]7;file://${env:COMPUTERNAME}/${provider_path}$ansi_escape\"
}