]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
lessfilter: support nfo files
authorSimon Ruderich <simon@ruderich.org>
Mon, 24 Apr 2017 10:15:11 +0000 (12:15 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 24 Apr 2017 10:15:11 +0000 (12:15 +0200)
lessfilter

index 442efa99442f4d83ab16b4d05dd8653e31774447..1403df463f98fa8cdf64cf106ab1bd6290f122a8 100755 (executable)
@@ -23,6 +23,11 @@ case "$1" in
     *.diff | *.patch)
         colordiff <"$1"
         ;;
+
+    *.nfo)
+        iconv -f latin1 -t utf-8 <"$1"
+        ;;
+
     *)
         # Display directory contents.
         if test -d "$1"; then