This commit is contained in:
joachimschmidt557 2019-06-15 12:22:25 +02:00
parent 0ce80a8767
commit 35200e9401

8
nope
View file

@ -5,19 +5,19 @@ usage() {
echo opens files echo opens files
} }
case $@ in case "$@" in
--help) --help)
usage usage
exit 1 exit 1
;; ;;
*.pdf) *.pdf)
okular $@ > /dev/null 2>&1 & okular "$@" > /dev/null 2>&1 &
;; ;;
*.html) *.html)
firefox $@ > /dev/null 2>&1 & firefox "$@" > /dev/null 2>&1 &
;; ;;
*.mp4|*.mp3) *.mp4|*.mp3)
vlc $@ > /dev/null 2>&1 & vlc "$@" > /dev/null 2>&1 &
;; ;;
*) *)
echo "No rule for opening this file has been specified" echo "No rule for opening this file has been specified"