author | Lorenzo Bettini <bettini@dsi.unifi.it> | 2015年03月28日 17:26:06 +0100 |
---|---|---|
committer | Lorenzo Bettini <bettini@dsi.unifi.it> | 2015年03月28日 17:26:06 +0100 |
commit | 03c2b39609f732cc22a38f8ef9b6fbb3d2574397 (patch) | |
tree | 1e7cca009aec873913780739d4b1d6a11f9bf9a9 /src | |
parent | b0e08e1d4dbd39f5c292ae48256a62821ff503f2 (diff) | |
download | src-highlite-03c2b39609f732cc22a38f8ef9b6fbb3d2574397.tar.gz |
-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 |