Skip to content

Instantly share code, notes, and snippets.

@vprusa
Last active November 21, 2020 15:26
Show Gist options
  • Save vprusa/94d541d28002def0672506031c2c9ece to your computer and use it in GitHub Desktop.
Save vprusa/94d541d28002def0672506031c2c9ece to your computer and use it in GitHub Desktop.
Starts random video from dir using vlc
#!/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