From fdbdf000588058f845f8a9edbe5ec3157189f680 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 23 Feb 2016 00:05:47 +0300 Subject: [PATCH] Split .gitconfig into 2 color schemas for dark and light bg --- .gitconfig | 61 ++--------------------------------------- lib/config/git/dark_bg | 27 ++++++++++++++++++ lib/config/git/light_bg | 26 ++++++++++++++++++ 3 files changed, 55 insertions(+), 59 deletions(-) create mode 100644 lib/config/git/dark_bg create mode 100644 lib/config/git/light_bg diff --git a/.gitconfig b/.gitconfig index 17c893c..598af7b 100644 --- a/.gitconfig +++ b/.gitconfig @@ -30,65 +30,8 @@ [color] ui = auto -# Adapted from http://shallowsky.com/blog/programming/gitcolors.html -# and http://www.ansdb.com/649-git-colors-for-light-background -[color "branch"] -# -- default -- -# current = green -# local = normal -# plain = normal -# remote = magenta -# -- light bg -- - current = blue - local = normal - plain = normal - remote = magenta - upstream = normal -[color "diff"] -# -- default -- -# commit = bold yellow -# frag = cyan -# meta = cyan -# new = green -# old = magenta -# plain = normal -# whitespace = normal red -# -- light bg -- - commit = normal bold - frag = cyan - meta = bold - new = blue - old = magenta - plain = normal - whitespace = normal red -#[color "grep"] -# -- default -- -# match = normal -[color "decorate"] -# -- light bg -- - HEAD = blue - tag = blue -#[color "interactive"] -# -- default -- -# error = normal -# header = normal -# help = normal -# prompt = normal -[color "status"] -# -- default -- -# added = cyan -# changed = magenta -# header = normal -# nobranch = red -# untracked = red -# updated = green -# -- light bg -- - added = blue - changed = blue - header = normal - nobranch = red - untracked = red - updated = magenta +[include] + path = ~/lib/config/git/light_bg [log] abbrevCommit = true diff --git a/lib/config/git/dark_bg b/lib/config/git/dark_bg new file mode 100644 index 0000000..12c9f7c --- /dev/null +++ b/lib/config/git/dark_bg @@ -0,0 +1,27 @@ +[color "branch"] + current = green + local = normal + plain = normal + remote = magenta +[color "diff"] + commit = bold yellow + frag = cyan + meta = cyan + new = green + old = magenta + plain = normal + whitespace = normal red +[color "grep"] + match = normal +[color "interactive"] + error = normal + header = normal + help = normal + prompt = normal +[color "status"] + added = cyan + changed = magenta + header = normal + nobranch = red + untracked = red + updated = green diff --git a/lib/config/git/light_bg b/lib/config/git/light_bg new file mode 100644 index 0000000..12fffdd --- /dev/null +++ b/lib/config/git/light_bg @@ -0,0 +1,26 @@ +# Adapted from http://shallowsky.com/blog/programming/gitcolors.html +# and http://www.ansdb.com/649-git-colors-for-light-background +[color "branch"] + current = blue + local = normal + plain = normal + remote = magenta + upstream = normal +[color "diff"] + commit = normal bold + frag = cyan + meta = bold + new = blue + old = magenta + plain = normal + whitespace = normal red +[color "decorate"] + HEAD = blue + tag = blue +[color "status"] + added = blue + changed = blue + header = normal + nobranch = red + untracked = red + updated = magenta -- 2.39.2