From 16f5d116e7ce9574c92a3a356aebe0dfbebcb7c2 Mon Sep 17 00:00:00 2001 From: Derek Lomax <37639793+derekthecool@users.noreply.github.com> Date: Thu, 23 Mar 2023 10:46:53 -0600 Subject: [PATCH] Update shell-integration.md Add missing line to powershell starship OSC 7 integration. The variable for $ansi_escape was missing. --- docs/shell-integration.md | 1 + 1 file changed, 1 insertion(+) 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\" }