Skip to content

Instantly share code, notes, and snippets.

@marek-saji
Created October 18, 2013 09:57
Show Gist options
  • Select an option

  • Save marek-saji/7039291 to your computer and use it in GitHub Desktop.

Select an option

Save marek-saji/7039291 to your computer and use it in GitHub Desktop.
With this in .gitconfig you can use n/p keys to cycle through commits, diffs and diffs chunks in git-diff, git-show, git-log and such.
[core]
pager = "printf \".less-history-file:\n.search\n\\\"^(commit|diff|@@)\n.shell\n\" > ~/.gitlesshst ; LESSHISTFILE=~/.gitlesshst less -MFRSX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment