mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-30 17:01:57 +08:00 
			
		
		
		
	parametrized status colors
This commit is contained in:
		
							
								
								
									
										14
									
								
								vendor/clink.lua
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/clink.lua
									
									
									
									
										vendored
									
									
								
							| @@ -347,9 +347,9 @@ local function git_prompt_filter() | |||||||
|  |  | ||||||
|     -- Colors for git status |     -- Colors for git status | ||||||
|     local colors = { |     local colors = { | ||||||
|         clean = "\x1b[1;37;40m", |         clean = clean_color, | ||||||
|         dirty = "\x1b[33;3m", |         dirty = dirty_color, | ||||||
|         conflict = "\x1b[31;1m" |         conflict = conflict_color | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     local git_dir = get_git_dir() |     local git_dir = get_git_dir() | ||||||
| @@ -392,8 +392,8 @@ local function hg_prompt_filter() | |||||||
|     if hg_dir then |     if hg_dir then | ||||||
|         -- Colors for mercurial status |         -- Colors for mercurial status | ||||||
|         local colors = { |         local colors = { | ||||||
|             clean = "\x1b[1;37;40m", |             clean = clean_color, | ||||||
|             dirty = "\x1b[31;1m", |             dirty = dirty_color, | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         local pipe = io.popen("hg branch 2>&1") |         local pipe = io.popen("hg branch 2>&1") | ||||||
| @@ -426,8 +426,8 @@ end | |||||||
| local function svn_prompt_filter() | local function svn_prompt_filter() | ||||||
|     -- Colors for svn status |     -- Colors for svn status | ||||||
|     local colors = { |     local colors = { | ||||||
|         clean = "\x1b[1;37;40m", |         clean = clean_color, | ||||||
|         dirty = "\x1b[31;1m", |         dirty = dirty_color, | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     if get_svn_dir() then |     if get_svn_dir() then | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								vendor/cmder_prompt_config.lua.default
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/cmder_prompt_config.lua.default
									
									
									
									
										vendored
									
									
								
							| @@ -40,3 +40,6 @@ prompt_singleLine = false | |||||||
| uah_color = "\x1b[1;33;40m" -- Green = uah = [user]@[hostname] | uah_color = "\x1b[1;33;40m" -- Green = uah = [user]@[hostname] | ||||||
| cwd_color = "\x1b[1;32;40m" -- Yellow cwd = Current Working Directory | cwd_color = "\x1b[1;32;40m" -- Yellow cwd = Current Working Directory | ||||||
| lamb_color = "\x1b[1;30;40m" -- Light Grey = Lambda Color | lamb_color = "\x1b[1;30;40m" -- Light Grey = Lambda Color | ||||||
|  | clean_color = "\x1b[1;37;40m" | ||||||
|  | dirty_color = "\x1b[33;3m" | ||||||
|  | conflict_color = "\x1b[31;1m" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user