packaging vs default pager
- From
Ben Walton <bwalton@artsci.utoronto.ca>
- Date
- Oct 28, 2009, 15:21 UTC
- Message-ID
- <1256742357-sup-3798@ntdws12.chass.utoronto.ca>
Hi All,
I'd like to see what people think about providing a configure/Makefile knob for overriding the default pager at build time. Currently, things use 'less' as the fallback and rely on the path to find it.
On (old) solaris systems, /usr/bin/less (typically the first less found) doesn't understand the default arguments (FXRS), which forces users to alter their environment (PATH, GIT_PAGER, LESS, etc) or have a local or global gitconfig before paging works as expected.
Would it be completely out of line to provide a knob so that the fallback $pager could be set to something more specific/appropriate during the build? [I'll do the work but not if it's an undesirable addition.]
Alternately, are packagers recommended to simply ship a global gitconfig that sets core.pager?
Thanks -Ben
-- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu Contact me to arrange for a CAcert assurance meeting.