chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemctl: Add SYSTEMD_PAGER for setting the pager to use in systemctl
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 08c7fabb7aca8a6a56d89248624d976b9da62415..ab41566577167f3fe9997328197e831abd1ef496 100644
(file)
--- 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;