Set window title to current folder unless there's git information.

Unfortunately doesn't apply to conEmu's tab name.
This commit is contained in:
Jackbennett 2016-05-26 15:47:00 +01:00
parent 7a0a1adc02
commit 010049a849

1
vendor/profile.ps1 vendored
View File

@ -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"