mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +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:
		
							
								
								
									
										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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user