summary refs log tree commit diff
path: root/home/.local/bin/hup
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-09 18:13:26 -0500
committerJune McEnroe <june@causal.agency>2019-02-09 18:13:26 -0500
commit986e482c214b9b3e93f2d01b71ea0db0462d9611 (patch)
tree757468a172d3fa20fa6c3911451273db41adc208 /home/.local/bin/hup
parentAdd tab option to HTML output of hi (diff)
downloadsrc-986e482c214b9b3e93f2d01b71ea0db0462d9611.tar.gz
src-986e482c214b9b3e93f2d01b71ea0db0462d9611.zip
Add hup
Diffstat (limited to 'home/.local/bin/hup')
-rwxr-xr-xhome/.local/bin/hup7
1 files changed, 7 insertions, 0 deletions
diff --git a/home/.local/bin/hup b/home/.local/bin/hup
new file mode 100755
index 00000000..4fc5d7ae
--- /dev/null
+++ b/home/.local/bin/hup
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eu
+
+dir=$(mktemp -d)
+hi -f html -o document,tab=4 "$@" > "$dir/hi.html"
+up "$dir/hi.html"
+rm -r "$dir"