SinglePrompt is a PowerShell module that clears the previous prompt on command acceptance and implements Windows Terminal shell integration.
The minimum PowerShell version required is 7.2.0.
Upgrade your PSReadLine before running SinglePrompt:
Install-Module PSReadLine -Repository PSGallery -Scope CurrentUser -Force -RequiredVersion 2.4.5
Install-Module SinglePromptNow restart your shell.
Import the module and call the Cmdlet Install-SinglePrompt after any modifications you might have made to the prompt:
Import-Module SinglePrompt && Install-SinglePromptIf your prompt uses more than 1 line, set how many rows with Set-SinglePromptOptions -PromptRows <n>.
If you came from NewShellServer, set PromptRows to 3:
Set-SinglePromptOptions -PromptRows 3To disable shell integration, run:
Set-SinglePromptOptions -UseOSC $false