opout posix

This commit is contained in:
Luke Smith 2019-01-08 13:52:05 -05:00
parent f048ff6aa6
commit d99097166c

View file

@ -2,7 +2,7 @@
# opout: "open output": A general handler for opening a file's intended output. # opout: "open output": A general handler for opening a file's intended output.
# I find this useful especially running from vim. # I find this useful especially running from vim.
basename="${1%.*}" basename="$(echo "$1" | sed 's/\.[^\/.]*$//')"
case "$1" in case "$1" in
*.tex|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.tex|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;;