from beef-book

This commit is contained in:
vibikim 2020-12-31 10:56:25 +02:00
parent f9de94904f
commit 1d20358bb4
3 changed files with 32 additions and 25 deletions

View file

@ -10,8 +10,8 @@ set ignorecase true
cmd open ${{
case $(file --mime-type "$f" -bL) in
text/*|application/json) $EDITOR "$f";;
video/*|image/*/application/pdf) xdg-open "$f";;
*) xdg-open "$f" ;;
video/*|image/*/application/pdf) xdg-open "$f" &;;
*) xdg-open "$f" &;;
esac
}}