Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

You could use something like:

function prompt
{
    Write-Host ("PS " + $(get-location) +">") -nonewline -backgroundcolor yellow -foregroundcolor black
    return " "
}
share|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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .