" at the end of the prompt? If I use write-host to determine my prompt, Powershell automatically adds “PS>” at the end. How...">Geek Answers HandbookDoes 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> +4powershell promptguillermooo Jan 19 '10 at 20:54source share1 answersolvable; do the following: function prompt { write-host '>' -foregroundcolor "green" -nonewline ' ' } #prompt: #> +4guillermooo Jan 19 '10 at 21:25source shareMore articles:Is it possible to position the cursor at the end of a found line? - vimWhat is a simple web page compiler for restructured text? - compiler-constructionDjango: json serializes a request that uses defer () or only () - jsonCan CSS handle this hourglass-like situation? - htmliphone - strange error between UIActionSheet and UITabBar - iphoneMatching two large sets of strings in C # - dictionarySetting parent in ModelForm in Google App Engine - pythonHow to get μ character from sqlite and on webpage? - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1298819/what-are-ways-to-match-street-addresses-in-sql-server&usg=ALkJrhhDtd86jYZKP0n_gR5iaoUtYelA4wButton color UINavigationBar - colorsAll Articles
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?
write-host
function prompt { '> ' } #prompt: #> function prompt { write-host '> ' -foregroundcolor "green" } #prompt: #> #PS>
solvable; do the following:
function prompt { write-host '>' -foregroundcolor "green" -nonewline ' ' } #prompt: #>