diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-06-30 11:37:41 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-06-30 11:37:41 +0900 |
| commit | 4d7854d7cfab4b7ed881a0f53c1197fefd520ae0 (patch) | |
| tree | f133e16f0ff22c7fb7991aa1799c8c139b568718 /ar/.local/bin/opout | |
| parent | c6eec89323ea6e637b627ed7e65497d660dea9d1 (diff) | |
modified vim/init.vim, modified bin/opout, modified bin/sysact
Diffstat (limited to 'ar/.local/bin/opout')
| -rwxr-xr-x | ar/.local/bin/opout | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ar/.local/bin/opout b/ar/.local/bin/opout index 70bc2cb..1b84b19 100755 --- a/ar/.local/bin/opout +++ b/ar/.local/bin/opout @@ -9,7 +9,9 @@ basename="${1%.*}" case "${*}" in *.tex | *.sil | *.m[dse] | *.[rR]md | *.mom | *.[0-9]) target="$(getcomproot "$1" || echo "$1")" - setsid -f xdg-open "${target%.*}".pdf >/dev/null 2>&1 + target="${target##*/}" + target="$(find . -name "${target%.*}".pdf | head -n 1)" + setsid -f xdg-open "$target" >/dev/null 2>&1 ;; *.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;; *.sent) setsid -f sent "$1" >/dev/null 2>&1 ;; |
