commit e9ac19aa1fb596a5084b7e03498f406160645b10
parent ed1442be2d41c082abf0517627fcf39639364cde
Author: parazyd <parazyd@dyne.org>
Date: Wed, 13 May 2020 11:02:36 +0200
Prefer ytdl over http in the main switch clause.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/p b/p
@@ -39,6 +39,10 @@ gopher://*)
esac
;;
+ytdl://*|*www.youtube.com*|*vimeo.com*|*dailymotion.com*)
+ mpv "$clip" &
+ ;;
+
http://*|https://*)
case "$clip" in
*.jpg|*.jpeg|*.JPG|*.JPEG|*.png|*.PNG)
@@ -56,10 +60,6 @@ http://*|https://*)
esac
;;
-ytdl://*|*www.youtube.com*|*vimeo.com*|*dailymotion.com*)
- mpv "$clip" &
- ;;
-
ssh://*)
$TERMCMD ssh "$clip" &
;;