Showing results for Prompt Function - PowerShell Team

Jul 21, 2006
Post comments count0
Post likes count0

Setting the console title to be your current working directory

PowerShell Team
PowerShell Team

jmanning wrote: 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: function Prompt{  $host.ui.RawUI.WindowTitle = $(get-location)  "PS> "} If you want to see a bunch of great prompt examples, check out: h...

FAQSHELLENVIRONMENT