#!/usr/bin/env sh # file opener using your preferred applications if exist mimeo; then mimeo "$1" elif exist xdg-open; then xdg-open "$1" fi