Hi,
the default prompt of the powershell is “PS” and the current working directory:
1 | PS D:\> |
This is set by the prompt function. With the Get-Command command let you can show the prompt functions script code:
1 2 3 | PS D:\> Get-Command Prompt PS D:\> ( Get-Command Prompt).ScriptBlock "PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) " ; |
To customize the prompt simply define an own function prompt. For example add a newline before the “>”
1 2 3 4 | function prompt() { "PS $($executionContext.SessionState.Path.CurrentLocation)$("`r`n>" * ($nestedPromptLevel + 1)) " ; } |
Michael