]> git.phdru.name Git - dotfiles.git/commitdiff
Split .gitconfig into 2 color schemas for dark and light bg
authorOleg Broytman <phd@phdru.name>
Mon, 22 Feb 2016 21:05:47 +0000 (00:05 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 22 Feb 2016 21:21:25 +0000 (00:21 +0300)
.gitconfig
lib/config/git/dark_bg [new file with mode: 0644]
lib/config/git/light_bg [new file with mode: 0644]

index 17c893cb8649d011724a991c10eedfdf20e45625..598af7be712d6828a716ab612e6cf2cf2c106bdd 100644 (file)
 [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 (file)
index 0000000..12c9f7c
--- /dev/null
@@ -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 (file)
index 0000000..12fffdd
--- /dev/null
@@ -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