]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Use pager extension with colordiff and less as pager.
authorSimon Ruderich <simon@ruderich.org>
Mon, 1 Sep 2008 20:04:26 +0000 (22:04 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 1 Sep 2008 20:04:26 +0000 (22:04 +0200)
It's not used for commands which require interactive input like hg record.

hgrc

diff --git a/hgrc b/hgrc
index 3721ec41885e7de41dd1d593c82d0078e6ca0ec1..49626c87e1ce495e74c73678edcafa7b287f569c 100644 (file)
--- a/hgrc
+++ b/hgrc
@@ -20,6 +20,8 @@ hgext.fetch =
 hgext.hgk =
 # Patch stack support.
 hgext.mq =
+# Use a pager for all output.
+hgext.pager =
 # Partial commit utility.
 hgext.record =
 # Allows cherry-picking and rebasing.
@@ -36,3 +38,9 @@ precommit = precommit-runtests
 prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1
 # Prevent "hg push" if MQ patches are applied.
 preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1
+
+# Use colordiff and less as pager so that output from diff is colored and
+# everything is easily readable in a terminal.
+[pager]
+pager = colordiff | less
+ignore = record, qrecord