Changing the PowerShell Prompt
Just a quick PowerShell tip I found out today. If you want to customize your prompt, you can do it pretty easily by creating a function called "prompt". PowerShell will call this function whenever it wants to write a new prompt. A sample is below:
function prompt
{
$path = get-location
return "<$path>`nDECAV>"
}
Pretty cool. You can be as creative as you want with the prompt, doing different things based on the variables at the time. Of course, you can do more fancy things if you want, such as get history numbers or machine names.