[feature] alias "more" to "less"

David Sastre Medina d.sastre.medina@gmail.com
Tue May 15 17:07:00 GMT 2012

On Tue, May 15, 2012 at 08:39:22AM -0700, Andrew DeFaria wrote:
> On 05/11/2012 01:33 AM, Noel Grandin wrote:
> >It seems that pretty much all unixes alias "more" to "less" these days.
> >It would be very nice if that was the default behaviour of cygwin.
> >
> I second this!
> Granted I know how to alias more to less and I do so for my
> environment. But I'm often working in or helping others in Cygwin in
> their environment and most people, let's face it, have no
> environment and fear the command line so! Or, as is the current case
> with my client, have a generic user that is used for things like
> building and we go about setting up Cygwin on multiple build
> machines but we end up with plain installs with no environment and
> no aliasing of more -> less. Having to run around to groups of
> machines further configuring things like these often used aliases is
> a pain. And every time a new build machine is spun up and Cygwin
> installed (via a .cmd file I cooked up) the alias is missing on that
> new machine. It would be nice if this alias was a default for
> Cygwin.
> (Yes I know I can change my "package" to do customizations after
> installing Cygwin but I have not yet had the time to further enhance
> my "Cygwin Install" package...)

I understand some people expect "less" when they type "more".
There are other pagers as well: w3m, most, pg (some of them not
available in cygwin, though). I use my own home-brewed "most" pager
all the time, for instance.
No alias is enforced from config files (note also that this affects
only bash), so you'd have to tweak some file anyways in order to have
that alias as a default on your automated installations.
I think it would be way better if pagers registered themselves (via
postinstallation script) in the alternatives system. That way, only an
'alternatives --config pager' command would suffice to fullfil your
purpose. This, of course, results in a system-wide configuration, but
that's what you seem to be looking for.

Primary key fingerprint: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120515/d68395ba/attachment.sig>

More information about the Cygwin mailing list