From 2cce38a5c4c422ab662c29957a284b6dbf957939 Mon Sep 17 00:00:00 2001 From: GabriWar <72227489+GabriWar@users.noreply.github.com> Date: Tue, 16 Nov 2021 12:49:50 -0300 Subject: [PATCH] Update opout --- .local/bin/opout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/opout b/.local/bin/opout index 7f452df0..faf65753 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -4,7 +4,7 @@ # usually the pdf of a compiled document. I find this useful especially # running from vim. -basename="$(echo "${*}" | sed 's/\.[^\/.]*$//')" +basename="${1%.*}" case "${*}" in *.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;;