mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
parametrized status colors
This commit is contained in:
parent
0ef76ee2d3
commit
e0cb86d738
14
vendor/clink.lua
vendored
14
vendor/clink.lua
vendored
@ -347,9 +347,9 @@ local function git_prompt_filter()
|
||||
|
||||
-- Colors for git status
|
||||
local colors = {
|
||||
clean = "\x1b[1;37;40m",
|
||||
dirty = "\x1b[33;3m",
|
||||
conflict = "\x1b[31;1m"
|
||||
clean = clean_color,
|
||||
dirty = dirty_color,
|
||||
conflict = conflict_color
|
||||
}
|
||||
|
||||
local git_dir = get_git_dir()
|
||||
@ -392,8 +392,8 @@ local function hg_prompt_filter()
|
||||
if hg_dir then
|
||||
-- Colors for mercurial status
|
||||
local colors = {
|
||||
clean = "\x1b[1;37;40m",
|
||||
dirty = "\x1b[31;1m",
|
||||
clean = clean_color,
|
||||
dirty = dirty_color,
|
||||
}
|
||||
|
||||
local pipe = io.popen("hg branch 2>&1")
|
||||
@ -426,8 +426,8 @@ end
|
||||
local function svn_prompt_filter()
|
||||
-- Colors for svn status
|
||||
local colors = {
|
||||
clean = "\x1b[1;37;40m",
|
||||
dirty = "\x1b[31;1m",
|
||||
clean = clean_color,
|
||||
dirty = dirty_color,
|
||||
}
|
||||
|
||||
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]
|
||||
cwd_color = "\x1b[1;32;40m" -- Yellow cwd = Current Working Directory
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user