diff options
| author | krisdoodle45 <86745210+krisdoodle45@users.noreply.github.com> | 2022-02-17 18:13:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-17 18:13:14 +0100 |
| commit | c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5 (patch) | |
| tree | 21b640553e5efd77b05cb63dbb30496867ce224d /.local/bin/opout | |
| parent | 9ad912fe4eaf8c1b9c844780829aaea693c1e6de (diff) | |
| parent | 82b70e3a8e3aed45998c38024e8c3e16f9680cff (diff) | |
| download | eibhear-c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5.tar.gz eibhear-c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5.tar.zst eibhear-c16d6fd3b04670b2ae1315cfbc5dd6b53d44d0c5.zip | |
Merge branch 'LukeSmithxyz:master' into patch-4
Diffstat (limited to '.local/bin/opout')
| -rwxr-xr-x | .local/bin/opout | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/opout b/.local/bin/opout index 7f452df..faf6575 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 ;; |
