On Tue, Feb 11, 2014 at 6:40 PM, Lennart Poettering
<[email protected]> wrote:
>
> I think adding support for $SYSTEMD_LESS which is copied to $LESS right
> before invoking less would be a good choice, since it would allow people
> to override whatever systemd tries to set.
So something along the lines of:
user_less = getenv("SYSTEMD_LESS");
if (!user_less) {
if (scroll_to_end)
final_less = "FRSXMK+G";
else
final_less = "FRSXMK";
} else {
if (scroll_to_end)
final_less = concat(user_less, "+G");
else
final_less = user_less;
}
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel