2018-07-30 05:19:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# opout: "open output": A general handler for opening a file's intended output.
|
|
|
|
# I find this useful especially running from vim.
|
|
|
|
|
|
|
|
filename=$(readlink -f "$1")
|
|
|
|
ext="${filename##*.}"
|
|
|
|
filename="${filename%.*}"
|
|
|
|
|
|
|
|
case "$ext" in
|
|
|
|
tex|md|rmd) zathura $filename.pdf & ;;
|
2018-09-17 00:22:43 +00:00
|
|
|
html) $TRUEBROWSER --new-window $filename.html & ;;
|
2018-07-30 05:19:40 +00:00
|
|
|
esac
|