Powershell Window Title

There’s no “title” command in Powershell to set the window title of the console window. I use this frequently because I often have several build/codebase windows open, and switch between them frequently. Add this to your profile to create a “title” alias:

   1:  function Set-WindowTitle($text)
   2:  {
   3:      $Host.UI.RawUI.WindowTitle = $text
   4:  }
   5:  Set-Alias title Set-WindowTitle

This entry was posted on Friday, February 16th, 2007 at 10:29 am and is filed under powershell. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.