Say I have a powershell line that looks like this:

PS C:\Dev\Apps>

Is it possible to modify that so that it is highlighted in, say, yellow? I'd like to be able to make all of the command lines "pop" a bit more. In a big wall of text it's really hard to scan and see the important parts (i.e. the commands you ran). I've browsed a few articles about Powershell and don't see any way to do this.

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

You could use something like:

function prompt
{
    Write-Host ("PS " + $(get-location) +">") -nonewline -backgroundcolor yellow -foregroundcolor black
    return " "
}
link|improve this answer
And see help about_prompts and help about_profiles for more information. – Dennis Williamson Dec 22 '10 at 20:29
Wow. Copy, paste, exec, done! – jcollum Dec 22 '10 at 20:40
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.