dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 64fce405261fa685c5da5a1bcc2fb815b95d0d31
parent c8eae342fe13e0e7956be291c02269de4378681e
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 24 Mar 2020 18:28:47 -0400

opout case fix

Diffstat:
M.local/bin/opout | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.local/bin/opout b/.local/bin/opout @@ -7,8 +7,7 @@ basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" case "$1" in - *.tex|*.md|*.[rR]md|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; - *.[0-9]) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; - *.html) setsid $BROWSER "$basename".html >/dev/null 2>&1 & ;; + *.tex|*.md|*.[rR]md|*.ms|*.me|*.mom|*.[0-9]) setsid xdg-open "$basename".pdf >/dev/null 2>&1 & ;; + *.html) setsid "$BROWSER" "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; esac