From: Zbigniew Jędrzejewski-Szmek Date: Sun, 22 Dec 2013 21:11:45 +0000 (-0500) Subject: systemctl: also color filenames of drop-ins in cat X-Git-Tag: v209~704 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=58684be9a781be9797142bce442bbac6fb6a7738 systemctl: also color filenames of drop-ins in cat --- 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);