mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 07:46:28 +00:00
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:
parent
635a09a108
commit
43651af4b9
@ -245,7 +245,7 @@ You can also set a similar output with PowerShell by creating a function named `
|
|||||||
```powershell
|
```powershell
|
||||||
# edit $PROFILE
|
# edit $PROFILE
|
||||||
function Invoke-Starship-PreCommand {
|
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)
|
Invoke-Expression (&starship init powershell)
|
||||||
|
Loading…
Reference in New Issue
Block a user