mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 00:39:08 +08:00
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:
parent
7a0a1adc02
commit
010049a849
1
vendor/profile.ps1
vendored
1
vendor/profile.ps1
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user