mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-04 03:12:16 +08:00 
			
		
		
		
	Lambda is now handled by clink
This commit is contained in:
		
							
								
								
									
										5
									
								
								config/prompt.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								config/prompt.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					function lambda_prompt_filter()
 | 
				
			||||||
 | 
					    clink.prompt.value = string.gsub(clink.prompt.value, "{lamb}", "λ")
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					clink.prompt.register_filter(lambda_prompt_filter, 60)
 | 
				
			||||||
							
								
								
									
										13
									
								
								vendor/init.bat
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/init.bat
									
									
									
									
										vendored
									
									
								
							@@ -2,16 +2,9 @@
 | 
				
			|||||||
:: Sets some nice defaults
 | 
					:: Sets some nice defaults
 | 
				
			||||||
:: Created as part of cmder project
 | 
					:: Created as part of cmder project
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					:: Change the prompt style
 | 
				
			||||||
:: Setting prompt style
 | 
					:: Mmm tasty lamb
 | 
				
			||||||
@for /f "tokens=2 delims=:." %%x in ('chcp') do @set cp=%%x
 | 
					@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m
 | 
				
			||||||
:: The slow part
 | 
					 | 
				
			||||||
:: World without Unicode is a sad world
 | 
					 | 
				
			||||||
@chcp 65001>nul
 | 
					 | 
				
			||||||
:: It has to be lambda, I already made a logo
 | 
					 | 
				
			||||||
@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40mλ$S$E[0m
 | 
					 | 
				
			||||||
@chcp %cp%>nul
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
:: Pick right version of clink
 | 
					:: Pick right version of clink
 | 
				
			||||||
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
 | 
					@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user