Custom Keybindings for Tig

Published: Thu Apr 07 2022

Notion image

What is Tig?

Tig is a command line, text based user interface for interacting with git. Not only does it allow you to see the history and diffs, but it can also run git commands. More on tig can be found here.

Create a custom binding

Tig can be further extended beyond it’s default commands. First, create a .tigrc file inside your home directory, then add a desired command. The one below binds the press of the ‘a’ key to run a commit amend command;

bind status     a       !?git commit --amend

More can be found on customising Tig as well as bindings here.

Back