mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-25 23:59:07 +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 = {
|
[ScriptBlock]$Prompt = {
|
||||||
$realLASTEXITCODE = $LASTEXITCODE
|
$realLASTEXITCODE = $LASTEXITCODE
|
||||||
|
$host.UI.RawUI.WindowTitle = Split-Path $pwd.ProviderPath -Leaf
|
||||||
PrePrompt | Microsoft.PowerShell.Utility\Write-Host -NoNewline
|
PrePrompt | Microsoft.PowerShell.Utility\Write-Host -NoNewline
|
||||||
CmderPrompt
|
CmderPrompt
|
||||||
Microsoft.PowerShell.Utility\Write-Host "`nλ " -NoNewLine -ForegroundColor "DarkGray"
|
Microsoft.PowerShell.Utility\Write-Host "`nλ " -NoNewLine -ForegroundColor "DarkGray"
|
||||||
|
Loading…
Reference in New Issue
Block a user