summaryrefslogtreecommitdiff
path: root/.zsh_functions/mpvshuffledir
diff options
context:
space:
mode:
Diffstat (limited to '.zsh_functions/mpvshuffledir')
-rw-r--r--.zsh_functions/mpvshuffledir4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zsh_functions/mpvshuffledir b/.zsh_functions/mpvshuffledir
new file mode 100644
index 0000000..927c15b
--- /dev/null
+++ b/.zsh_functions/mpvshuffledir
@@ -0,0 +1,4 @@
+ mpv ${=MPVOPTS} \
+ --shuffle \
+ (#i)${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov|divx) \
+ $@