Last active
November 21, 2020 15:26
-
-
Save vprusa/94d541d28002def0672506031c2c9ece to your computer and use it in GitHub Desktop.
Starts random video from dir using vlc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
randVid(){ | |
find "${1}" -name '*.vlc' -o -name '*.mkv' -o -name '*.mp4' | shuf | head -1 | |
} | |
alias rvVideos='vlc "$(randVid ~/Videos/)" & disown' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment