-rw-r--r-- | src/src-hilite-lesspipe.sh.in | 2 |
diff --git a/src/src-hilite-lesspipe.sh.in b/src/src-hilite-lesspipe.sh.in index 58b9b5f..eb5c3ee 100644 --- a/src/src-hilite-lesspipe.sh.in +++ b/src/src-hilite-lesspipe.sh.in @@ -6,6 +6,8 @@ for source in "$@"; do source-highlight --failsafe -f esc --lang-def=changelog.lang --style-file=esc.style -i "$source" ;; *Makefile|*makefile) source-highlight --failsafe -f esc --lang-def=makefile.lang --style-file=esc.style -i "$source" ;; + *.tar|*.tgz|*.gz|*.bz2|*.xz) + lesspipe "$source" ;; *) source-highlight --failsafe --infer-lang -f esc --style-file=esc.style -i "$source" ;; esac done |