Mail Archives: cygwin/2012/05/15/13:07:41
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_PGP_SIGNED,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
|
X-Spam-Check-By: | sourceware.org
|
Date: | Tue, 15 May 2012 19:07:14 +0200
|
From: | David Sastre Medina <d DOT sastre DOT medina AT gmail DOT com>
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: [feature] alias "more" to "less"
|
Message-ID: | <20120515170712.GD4970@pris.crapsteak.org>
|
References: | <4FACCED0 DOT 709 AT gmail DOT com> <jottbc$955$1 AT dough DOT gmane DOT org>
|
MIME-Version: | 1.0
|
In-Reply-To: | <jottbc$955$1@dough.gmane.org>
|
User-Agent: | Mutt/1.5.21 (2010-09-15)
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
Sender: | cygwin-owner AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
Delivered-To: | mailing list cygwin AT cygwin DOT com
|
--GpGaEY17fSl8rd50
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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!
>=20
> 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.
>=20
> (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.
--=20
Primary key fingerprint: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56
--GpGaEY17fSl8rd50
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iF4EAREIAAYFAk+yjT0ACgkQ95urBFKZ7FYMYAD9HalPxYryqqZJsMBdrYx7z7/P
jdoQ3y7zsyvAM5DxNwgA+wbKqLv1jtzpOTf7p5ziVnsUK9+4x4YvYgJD7kiF6kLv
=44yT
-----END PGP SIGNATURE-----
--GpGaEY17fSl8rd50--
- Raw text -