From 010049a849bc0c46d5a7340c98477898c5378961 Mon Sep 17 00:00:00 2001 From: Jackbennett Date: Thu, 26 May 2016 15:47:00 +0100 Subject: [PATCH] Set window title to current folder unless there's git information. Unfortunately doesn't apply to conEmu's tab name. --- vendor/profile.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index 979ed46..0394209 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -157,6 +157,7 @@ Set-Item -Path function:\PostPrompt -Value $PostPrompt -Options Constant [ScriptBlock]$Prompt = { $realLASTEXITCODE = $LASTEXITCODE + $host.UI.RawUI.WindowTitle = Split-Path $pwd.ProviderPath -Leaf PrePrompt | Microsoft.PowerShell.Utility\Write-Host -NoNewline CmderPrompt Microsoft.PowerShell.Utility\Write-Host "`nλ " -NoNewLine -ForegroundColor "DarkGray"