All Versions
By default, PowerShell displays the current path in its input prompt which wastes as lot of space. When you overwrite the “prompt” function, you control how the prompt is displayed. Here is a prompt that displays the current location in the title bar instead. It also beeps after a command completed.
function prompt { 'PS> ' $host.UI.RawUI.WindowTitle = Get-Location [Console]::Beep() }