small pixel drawing of a pufferfish dotfiles

bin/zora/xdg-open

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh
case "${1%%:*}" in
    http|https)
        exec firefox "$1"
        ;;
    *.pdf)
        exec zathura "$1"
        ;;
    slack)
        exec chromium --app=https://digitalocean.slack.com "$1"
        ;;
    *)
        exec /usr/bin/xdg-open "$@"
        ;;
esac