Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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 " "
}
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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