Skip to content

HenriquedoVal/SinglePrompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SinglePrompt is a PowerShell module that clears the previous prompt on command acceptance and implements Windows Terminal shell integration.

Installing

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 SinglePrompt

Now restart your shell.

Running

Import the module and call the Cmdlet Install-SinglePrompt after any modifications you might have made to the prompt:

Import-Module SinglePrompt && Install-SinglePrompt

If 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 3

To disable shell integration, run:

Set-SinglePromptOptions -UseOSC $false

About

PowerShell module that clears the previous prompt on command acceptance and implements Windows Terminal shell integration

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors