parametrized status colors

This commit is contained in:
Dax T. Games 2021-04-11 18:42:43 -04:00
parent 0ef76ee2d3
commit e0cb86d738
2 changed files with 10 additions and 7 deletions

14
vendor/clink.lua vendored
View File

@ -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

View File

@ -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"