summaryrefslogtreecommitdiffstats
path: root/docs/advanced-config
diff options
context:
space:
mode:
authorMicky Brunetti <micky2be@users.noreply.github.com>2023-04-23 13:42:51 +0200
committerGitHub <noreply@github.com>2023-04-23 13:42:51 +0200
commit43651af4b9e269aaa741c34238e35c8acdad8155 (patch)
treeb8d0ba37bc690bb68a1d98f4929c30bac2a4daac /docs/advanced-config
parent635a09a1083cd4249b024bb6f8fcceda4f9f1e7e (diff)
docs(pwsh): use a more convenient method to update the window title (#5125)
docs: fix PowerShell example to update the window title
Diffstat (limited to 'docs/advanced-config')
-rw-r--r--docs/advanced-config/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/advanced-config/README.md b/docs/advanced-config/README.md
index afd47ce17..13f30c0c4 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)