]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - tigrc
tigrc: update for tig >= 2.0
[config/dotfiles.git] / tigrc
1 # tig configuration file.
2
3 # Copyright (C) 2011-2015  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # Don't display uncommitted changes.
20 set show-changes = no
21
22
23 # DISPLAY
24
25 # Same as the default, but use relative dates.
26 set main-view = date:relative author:full commit-title:yes,graph,refs
27
28
29 # BINDINGS
30
31 # Allow moving in the main menu while displaying a diff in the bottom of the
32 # screen.
33 bind generic J next
34 bind generic K previous
35
36 # Mutt like bindings to move to first and last line.
37 bind generic = move-first-line
38 bind generic * move-last-line
39
40 # Close current view like in mutt.
41 bind diff i view-close
42 # Unbind unnecessary views. I only use the main view and view diffs of
43 # commits.
44 bind generic m none
45 bind generic d none
46 bind generic l none
47 bind generic t none
48 bind generic f none
49 bind generic b none
50 bind generic r none
51 bind generic s none
52 bind generic S none
53 bind generic c none
54 bind generic y none
55 bind generic g none
56 bind generic p none
57 # Unbind commands which may change the repository. I use tig only as a viewer.
58 bind main C none
59
60
61 # COLORS
62
63 # Try to mimic gitk's colors.
64
65 color date      default default
66 color delimiter default default # ~ if text is too long
67
68 # Main window.
69 color cursor         black   cyan         # currently selected line
70 color author         default default
71 color main-head      green   default bold # HEAD
72 color main-ref       green   default      # branches
73 color main-remote    yellow  default      # remote branches
74 color main-tag       yellow  default bold # tags
75 color main-local-tag yellow  default bold # local tags (normal tags)
76
77 # Information at the top of the commit diff.
78 color commit                default default
79 color "Author: "            default default
80 color "Commit: "            default default
81 color pp-merge              default default
82 color "Date: "              default default
83 color "AuthorDate: "        default default
84 color "CommitDate: "        default default
85 color pp-refs               default default
86 # Special parts of the commit message.
87 color "    Signed-off-by"   default default
88 color "    Acked-by"        default default
89
90 # Diff coloring.
91 color diff-header default default bold # diff --git a/.. b/..
92 color diff-index  default default bold # index abc..def
93 color diff-chunk  cyan    default      # @@ -.. +.. @@
94
95 # vim: ft=muttrc