docs(pwsh): use a more convenient method to update the window title (#5125)

docs: fix PowerShell example to update the window title
This commit is contained in:
Micky Brunetti
2023-04-23 13:42:51 +02:00
committed by GitHub
parent 635a09a108
commit 43651af4b9
+1 -1
View File
@@ -245,7 +245,7 @@ You can also set a similar output with PowerShell by creating a function named `
```powershell
# edit $PROFILE
function Invoke-Starship-PreCommand {
$host.ui.Write("`e]0; PS> $env:USERNAME@$env:COMPUTERNAME`: $pwd `a")
$host.ui.RawUI.WindowTitle = "$env:USERNAME@$env:COMPUTERNAME`: $pwd `a"
}
Invoke-Expression (&starship init powershell)