dot_testing/sh/snownews-url-handler

7 lines
119 B
Plaintext
Raw Normal View History

2022-06-18 21:42:39 -05:00
#!/bin/sh
tube="$(printf "%s\n" "$1" | grep "watch?v=" | wc -l)"
[ "$tube" -eq 1 ] && mpv "$1" && exit
firefox -P $1