Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tig

Stow package for ~/.tigrc. tig is the text-mode interface for Git — the read/navigate companion to lazygit’s interactive UI.

Table of contents

Layout

FileStows to
tig/.tigrc~/.tigrc

Display options

set git-colors    = no                 # don't double-style on top of git's color.* output
set diff-options  = -m --first-parent  # render merges as patches; follow first parent only
set show-changes  = yes                # staged/unstaged appear as faux commits in main view
set blame-options = -C -C -C           # `tig blame` follows copies across files
set wrap-lines    = yes                # wrap long lines instead of clipping

show-changes = yes is especially nice: in the main commit view, the top entries show your current HEAD state with unstaged + staged changes — no need to bounce back to git status.

Color scheme

Dracula-ish, using ANSI color slots (named colors) rather than hex. Each terminal’s Dracula theme maps the ANSI palette consistently (magenta → pink, blue → comment-purple, etc.), so the same .tigrc renders right on macOS iTerm/Terminal.app and Linux URxvt/Wezterm without per-platform tweaks.

ElementColor
Selected line (cursor)bold magenta (pink)
Search resultsblack on yellow
Line numbersblue (comment-purple), subtle
Active pane titlebold magenta on black
Inactive pane titleblue on black
diff +/- bodiesgreen / red
diff +/- highlightinverse green / red
Commit headersbold yellow
Index linescyan
Hunk markersmagenta
Author columncyan
Date columnblue (comment-purple)
HEAD markerbold magenta
Tagsbold yellow
Remote refsgreen
Trailers (Reported-by:, Signed-off-by:)green

Key bindings

KeyAction
YCopy the selected commit SHA to the system clipboard (pbcopy / xclip / wl-copy, whichever is available)

All of tig’s built-in bindings (Enter view commit, R refresh, q quit, ? help, etc.) remain unchanged.

Fresh-machine setup

brew install tig            # in the Brewfile
stow tig