From cfc61f4fa5a5b2236439ec1ebe416f23e31d8092 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 11 Jun 2020 14:53:23 +0200 Subject: Soo many features added weeee so much efficiencyyyy --- .scripts/preview | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .scripts/preview (limited to '.scripts/preview') diff --git a/.scripts/preview b/.scripts/preview new file mode 100755 index 0000000..822e5b0 --- /dev/null +++ b/.scripts/preview @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" + +case "$1" in +*.tex | *.m[dse] | *.[rR]md | *.mom | *.[0-9]) compile "$1" && setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;; +*.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;; +*.sent) setsid -f sent "$1" >/dev/null 2>&1 ;; +esac -- cgit v1.2.3