summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-06-18 16:23:43 +0300
committerLennart Poettering <lennart@poettering.net>2011-06-20 17:59:59 +0200
commitabebb5af9a7f5da77425aab1ecadd9bfcad53009 (patch)
tree26a93d084912b7b5ba1bb47503bab297fd215ea4 /src
parent9f7dad774ebfad23269800b7096eaad087481deb (diff)
systemctl: Add SYSTEMD_PAGER for setting the pager to use in systemctl
Diffstat (limited to 'src')
-rw-r--r--src/systemctl.c2
1 files changed, 1 insertions, 1 deletions
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;