Search code examples
powershellprompt

How to customize PowerShell continuation prompts?


I have been messing around with custom prompt functions in PowerShell. However, I cannot find a way to customize the continuation prompts.

By "continuation prompt", I mean the >> on the second line here:

Continuation prompt

Is that customizable at all?


Solution

  • This is part of the PSReadLine module.

    PS C:\> (Get-PSReadLineOption).ContinuationPrompt
    >> 
    PS C:\> Set-PSReadLineOption -ContinuationPrompt '~~ '
    PS C:\> @'
    ~~