From 58684be9a781be9797142bce442bbac6fb6a7738 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 22 Dec 2013 16:11:45 -0500 Subject: [PATCH] systemctl: also color filenames of drop-ins in cat --- src/systemctl/systemctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d0a03d9f2..c20a82b8b 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -3823,9 +3823,11 @@ static int cat(sd_bus *bus, char **args) { } STRV_FOREACH(path, dropin_paths) { - printf("%s# %s\n", + printf("%s%s# %s%s\n", isempty(fragment_path) && path == dropin_paths ? "" : "\n", - *path); + ansi_highlight_blue(), + *path, + ansi_highlight_off()); fflush(stdout); r = sendfile_full(STDOUT_FILENO, *path); -- 2.30.2