]> Sergey Matveev's repositories - schwabrak.git/commitdiff
Colourify with supercat
authorSergey Matveev <stargrave@stargrave.org>
Thu, 14 Mar 2024 14:03:12 +0000 (17:03 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 14 Mar 2024 14:03:12 +0000 (17:03 +0300)
list

diff --git a/list b/list
index 16416757278cfea94b24529cb7ae4ccc98b21df95412badf48085151a5d254ab..836fd60623cb5f8d14b49311de7f86e4fc19ee866f02e750764773c975aaa121 100755 (executable)
--- a/list
+++ b/list
@@ -42,4 +42,10 @@ for issue (issues/**/created) {
 
     print -n `cat issues/$issue/created`\\t$issue\\t
     print $tagsTheir
-} | sort -r
+} | sort -r | {
+    if command -v spc > /dev/null 2> /dev/null ; then
+        spc -e grn,"^..................." -e cya,"     [^      ]*$" -e red,"   .*\/"
+    else
+        cat
+    fi
+}