2018-10-04 18:00:58 +00:00
|
|
|
#!/bin/sh
|
2018-07-30 05:19:40 +00:00
|
|
|
# opout: "open output": A general handler for opening a file's intended output.
|
|
|
|
# I find this useful especially running from vim.
|
|
|
|
|
2018-10-04 18:00:58 +00:00
|
|
|
basename="${1%.*}"
|
2018-07-30 05:19:40 +00:00
|
|
|
|
2018-10-04 18:00:58 +00:00
|
|
|
case "$1" in
|
|
|
|
*.tex|*.md|*.rmd) setsid zathura "$basename".pdf & ;;
|
|
|
|
*.html) setsid "$TRUEBROWSER" --new-window "$basename".html & ;;
|
|
|
|
*.sent) setsid sent "$1" & ;;
|
2018-07-30 05:19:40 +00:00
|
|
|
esac
|