scripts/nope
2019-05-30 18:41:55 +02:00

26 lines
313 B
Bash
Executable file

#!/bin/sh
usage() {
echo nope
echo opens files
}
case $1 in
--help)
usage
exit 1
;;
*.pdf)
okular $1 > /dev/null 2>&1 &
;;
*.html)
firefox $1 > /dev/null 2>&1 &
;;
*.mp4|*.mp3)
vlc $1 > /dev/null 2>&1 &
;;
*)
echo "No rule for opening this file has been specified"
exit 1
;;
esac