blob: d9dd64cd715913538ae8b854d604cedc09bdfda9 (
plain) (
tree)
|
|
#! /usr/bin/env dash
# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="1.7.1" . %SHELL_LIBRARY_PATH
case $(file --mime-type "$f" -bL) in
text/*|application/json|application/vnd.hp-HPGL) "$EDITOR" "$f";;
image/*) "$IVIEWER" "$f";;
*) xdg-open "$f";;
esac
# vim: ft=sh
|