src-highlite.git - src-highlite

index : src-highlite.git
src-highlite
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLorenzo Bettini <bettini@dsi.unifi.it>2015年03月28日 17:26:06 +0100
committerLorenzo Bettini <bettini@dsi.unifi.it>2015年03月28日 17:26:06 +0100
commit03c2b39609f732cc22a38f8ef9b6fbb3d2574397 (patch)
tree1e7cca009aec873913780739d4b1d6a11f9bf9a9 /src
parentb0e08e1d4dbd39f5c292ae48256a62821ff503f2 (diff)
downloadsrc-highlite-03c2b39609f732cc22a38f8ef9b6fbb3d2574397.tar.gz
updated lesspipe file to handle archives
Diffstat (limited to 'src')
-rw-r--r--src/src-hilite-lesspipe.sh.in 2
1 files changed, 2 insertions, 0 deletions
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
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月02日 10:40:26 +0000

AltStyle によって変換されたページ (->オリジナル) /