Browse Source

colorize: add support for .ini files

Signed-off-by: Alejandro Mery <amery@hanoverdisplays.com>
master
Alejandro Mery 8 years ago
committed by Alejandro Mery
parent
commit
babee04f44
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      files/bin/colorize

+ 2
- 1
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

Loading…
Cancel
Save