]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: grey out trailing slash in --list output
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Nov 2022 17:29:58 +0000 (18:29 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 8 Nov 2022 20:35:34 +0000 (21:35 +0100)
Given this is just auxiliary info, let's make it a tiny bit less visible
then the main part of the path.

src/dissect/dissect.c

index b30144ec2e899e96e4b2617780bcf141be89084f..7014e9ad860a1d53b10b05dc11a32d8964212239 100644 (file)
@@ -722,7 +722,7 @@ static int list_print_item(
         assert_se(path);
 
         if (event == RECURSE_DIR_ENTER)
-                printf("%s/\n", path);
+                printf("%s%s/%s\n", path, ansi_grey(), ansi_normal());
         else if (event == RECURSE_DIR_ENTRY)
                 printf("%s\n", path);