aboutsummaryrefslogtreecommitdiff
path: root/dot_config/lf/executable_pv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/lf/executable_pv.sh')
-rw-r--r--dot_config/lf/executable_pv.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/dot_config/lf/executable_pv.sh b/dot_config/lf/executable_pv.sh
new file mode 100644
index 0000000..bafd074
--- /dev/null
+++ b/dot_config/lf/executable_pv.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+case "$1" in
+ *.tar*) tar tf "$1";;
+ *.zip) unzip -l "$1";;
+ *.pdf) pdftotext "$1" -;;
+ *) highlight -O ansi "$1";;
+esac