diff --git a/docs/advanced-config/README.md b/docs/advanced-config/README.md index afd47ce1..13f30c0c 100644 --- a/docs/advanced-config/README.md +++ b/docs/advanced-config/README.md @@ -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)