aboutsummaryrefslogtreecommitdiff
path: root/files/.lessfilter.sh
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2019-03-12 22:37:57 +0500
committerAnton Bobov <abobov@gmail.com>2019-03-12 22:39:59 +0500
commit1d8313793754f0ebc504d590058e70be91431908 (patch)
tree95101dbffaada5141385d231a61ce039ac195621 /files/.lessfilter.sh
parent7a9a1c7f60fb400cc4f0d470bcc053992f1b7484 (diff)
zsh updates
Diffstat (limited to 'files/.lessfilter.sh')
-rwxr-xr-xfiles/.lessfilter.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/.lessfilter.sh b/files/.lessfilter.sh
index 86d6833..9580bf6 100755
--- a/files/.lessfilter.sh
+++ b/files/.lessfilter.sh
@@ -4,6 +4,7 @@ case $1 in
*.xml) if [ -x `which xmlstarlet 2>/dev/null` ]; then exec xmlstarlet fo "$1"; fi ;;
*.json) if [ -x `which jq 2>/dev/null` ]; then exec jq -C . "$1"; fi ;;
*.md) if [ -x `which pandoc 2>/dev/null` ]; then exec pandoc -t plain "$1"; fi ;;
+ *) exec /bin/lesspipe "$1";;
esac
exit 1