diff options
| author | Marc <40807627+marcwallach@users.noreply.github.com> | 2020-06-29 11:03:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-29 10:03:55 -0400 |
| commit | a78246219a6945b6a67f402c2e137de7f68ddb4a (patch) | |
| tree | ba302fa71bb74eb580f9a7bf93eea6ae4e9939ad /.local/bin/opout | |
| parent | 49b858c267f2a1528499d9e61794a2f825787f06 (diff) | |
| download | eibhear-a78246219a6945b6a67f402c2e137de7f68ddb4a.tar.gz eibhear-a78246219a6945b6a67f402c2e137de7f68ddb4a.tar.zst eibhear-a78246219a6945b6a67f402c2e137de7f68ddb4a.zip | |
Add support for boomer file names with spaces (#716)
Diffstat (limited to '.local/bin/opout')
| -rwxr-xr-x | .local/bin/opout | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/opout b/.local/bin/opout index 23f044e..7f452df 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -4,9 +4,9 @@ # usually the pdf of a compiled document. I find this useful especially # running from vim. -basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" +basename="$(echo "${*}" | sed 's/\.[^\/.]*$//')" -case "$1" in +case "${*}" in *.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;; *.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;; *.sent) setsid -f sent "$1" >/dev/null 2>&1 ;; |
