Re: [PATCH/RFC] Fix for default pager
- From
Jeff King <peff@peff.net>
- Date
- Jun 10, 2010, 08:29 UTC
- Message-ID
- <20100610082916.GA5559@coredump.intra.peff.net>
- In-Reply-To
- <AANLkTinAO5empFix9W_rbtU3Vv4O73OsJBtA1stb66DS@mail.gmail.com>
On Wed, Jun 09, 2010 at 11:08:49AM +0200, Tor Arntsen wrote:
> If it's true that Git should demand 'less' to be installed before > being usable out of the box.. well, that's just plain silly.
It depends on how you define "out of the box". The person compiling it just needs to set DEFAULT_PAGER appropriately for their system. "less" is a sane choice for most modern systems. But we can make it even easier on AIX people with:
diff --git a/Makefile b/Makefile index 34b7dd5..6ad0aca 100644 --- a/Makefile +++ b/Makefile @@ -930,6 +930,7 @@ ifeq ($(uname_S),NetBSD) HAVE_PATHS_H = YesPlease endif ifeq ($(uname_S),AIX) + DEFAULT_PAGER = more NO_STRCASESTR=YesPlease NO_MEMMEM = YesPlease NO_MKDTEMP = YesPlease That won't do automagic run-time detection if you have "less" installed, but given your claim that AIX's "more" actually doesn't suck, it's probably a good default. People who care can set their PAGER environment variable. -Peff