Skip to content

Commit

Permalink
Set window title to current folder unless there's git information.
Browse files Browse the repository at this point in the history
Unfortunately doesn't apply to conEmu's tab name.
  • Loading branch information
Jackbennett committed May 26, 2016
1 parent 7a0a1ad commit 74efe7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vendor/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 74efe7b

Please sign in to comment.