Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Set-WindowTitle { $global:WindowTitleOverride = [string]::Join(" ",$args) }
- Set-Alias -name "title" -value Set-WindowTitle
- function Prompt
- {
- # Set WindowTitle to current directory name, unless overridden with Set-WindowTitle
- $host.ui.RawUI.WindowTitle = if ($global:WindowTitleOverride) { $global:WindowTitleOverride } else { get-location };
- if ($GitPromptScriptBlock) { & $GitPromptScriptBlock } # posh-git compatibility
- else { 'PS ' + $pwd + '> ' } # default. TODO: is it possible to chain and call the previous `Prompt` command?
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement