This blog has moved to http://ThePowerShellGuy.com
Greetings /\/\o\/\/
to get that cool red prompt of the PDC 05 presentation.
Simple, but took me some time (and the NG) to figure out.
first tryed
$host.ui.rawui.foregroundcolor = "Red", but you can not set it back in the prompt.
(works on the cmd-line), and the backgound is also handy but for the promt It would not work.
and you need at least one char on the last line (the Prompt)
so the function is :
function prompt{Write-Host -nonewline -ForeGroundColor Red MSH;">"}
gr /\/\o\/\/