[systemd-devel] [PATCH] pager: remove --no-init setting from LESS options

Jason A. Donenfeld Jason at zx2c4.com
Tue Feb 11 07:23:53 PST 2014

On Tue, Feb 11, 2014 at 7:09 AM, Andrey Borzenkov <arvidjaar at gmail.com> wrote:
> Should not it simply respect existing LESS value? Or, for that matter,
> SYSTEMD_LESS if someone thinks of a good reason to have different
> settings?

Yes, one way would be to look at LESS from the environment, and prefer
this to the internal ones if it exists. Then there'd have to be some
logic for appending "+G" for the scroll-to-end functionality.

I think, though, that patch would be orthogonal to this one. There's
no reason we shouldn't have saner defaults that don't break
gnome-terminal and konsole. So I'd still recommend merging this patch.

Then, after, if you're still interested, we could look at being
smarter with the environment.

More information about the systemd-devel mailing list