How to change a secondary / multi-line (>>) PowerShell request

I found a lot of instructions for changing the initial PowerShell prompt (i.e. prompt(), here is an example of one of many useful resources: http://blog.dabasinskas.net/customizing-windows-powershell-command-prompt/ ), but I could not find nothing about how to change the secondary / multi-line prompt ( >>), or the Windows equivalent string $PS2in Linux / Unix systems.

Here is an example of a change,

[current_directory] $   `
>>

from to >> $

[current_directory] $   `
$

Thank.

+4
source share
1 answer

You can use a serious accent (or backside):

PS C:\> Get-Service `
>> -name audiosrv
-1
source

Source: https://habr.com/ru/post/1650180/


All Articles