WIP nope
This commit is contained in:
parent
1f8acca322
commit
d95fa53dd7
1 changed files with 8 additions and 1 deletions
9
nope
9
nope
|
|
@ -20,6 +20,7 @@ case "$@" in
|
||||||
;;
|
;;
|
||||||
--version)
|
--version)
|
||||||
echo "nope version 0.1.0"
|
echo "nope version 0.1.0"
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
*.pdf)
|
*.pdf)
|
||||||
okular "$@" > /dev/null 2>&1 &
|
okular "$@" > /dev/null 2>&1 &
|
||||||
|
|
@ -27,9 +28,15 @@ case "$@" in
|
||||||
*.html)
|
*.html)
|
||||||
firefox "$@" > /dev/null 2>&1 &
|
firefox "$@" > /dev/null 2>&1 &
|
||||||
;;
|
;;
|
||||||
*.mp4|*.mp3)
|
*.mp4|*.mp3|*.wav|*.mkv)
|
||||||
vlc "$@" > /dev/null 2>&1 &
|
vlc "$@" > /dev/null 2>&1 &
|
||||||
;;
|
;;
|
||||||
|
*.ods)
|
||||||
|
libreoffice "$@" > /dev/null 2>&1 &
|
||||||
|
;;
|
||||||
|
*.jpg|*.png)
|
||||||
|
feh "$@" > /dev/null 2>&1 &
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "No rule for opening this file has been specified"
|
echo "No rule for opening this file has been specified"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue