From babee04f441f5ec4b09289fd55f4633f7960dbf7 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 18 Jan 2017 16:09:46 +0000 Subject: [PATCH] colorize: add support for .ini files Signed-off-by: Alejandro Mery --- files/bin/colorize | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/bin/colorize b/files/bin/colorize index 08dcb69..7cbacb0 100755 --- a/files/bin/colorize +++ b/files/bin/colorize @@ -24,7 +24,7 @@ fi for f; do l= - eval mime=$(file -i - < "$f" | cut -d' ' -f2-) + eval mime=$(file -i -L - < "$f" | cut -d' ' -f2-) case "$mime" in application/xml) l=xml ;; text/x-shellscript) l=sh ;; @@ -38,6 +38,7 @@ for f; do *) case "$f" in *.sh) l=sh ;; + *.ini) l=ini ;; *.c|*.h|*.cc|*.hh) l=c ;; *) l=text ;; esac