From abebb5af9a7f5da77425aab1ecadd9bfcad53009 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Sat, 18 Jun 2011 16:23:43 +0300 Subject: systemctl: Add SYSTEMD_PAGER for setting the pager to use in systemctl --- src/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/systemctl.c b/src/systemctl.c index 08c7fabb7a..ab41566577 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -5572,7 +5572,7 @@ static void pager_open(void) { if (!on_tty() || arg_no_pager) return; - if ((pager = getenv("PAGER"))) + if ((pager = getenv("SYSTEMD_PAGER")) || (pager = getenv("PAGER"))) if (!*pager || streq(pager, "cat")) return; -- cgit v1.2.3-54-g00ecf