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:
1 parent
57a1b7f2ef
commit
16f5d116e7
1 file changed
+1
@@ -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\"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user