Setting the console title to be your current working directory
Also, given how common the request is, I’d ask Jeffrey to (pretty-please) also include in this post a prompt function that sets the title to include pwd.
Ask and yea shall receive:
$host.ui.RawUI.WindowTitle = $(get-location)
If you want to see a bunch of great prompt examples, check out:
Jeffrey Snover [MSFT]
Windows PowerShell/Aspen Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
PSMDTAG:FAQ: How do I set the Console Title to my current working directory?