mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-16 06:37:54 +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
|
||||
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
|
||||
|
Reference in New Issue
Block a user