" at the end of the prompt? If I use write-host to determine my prompt, Powershell automatically adds “PS>” at the end. How...">

Does Write-Host add "PS>" at the end of the prompt?

If I use write-host to determine my prompt, Powershell automatically adds “PS>” at the end. How can I use write-host so that it does not?

 function prompt { '> ' } #prompt: #> function prompt { write-host '> ' -foregroundcolor "green" } #prompt: #> #PS> 
+4
source share
1 answer

solvable; do the following:

 function prompt { write-host '>' -foregroundcolor "green" -nonewline ' ' } #prompt: #> 
+4
source

All Articles