opout posix

This commit is contained in:
Luke Smith 2019-01-08 13:52:05 -05:00
parent a7a8f94a59
commit 373cc418a6
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

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