diff --git a/docs/shell-integration.md b/docs/shell-integration.md index 1bcaed0ab..d8405f3d7 100644 --- a/docs/shell-integration.md +++ b/docs/shell-integration.md @@ -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\" }