summaryrefslogtreecommitdiff
path: root/.zsh_functions/mpvshuffledir
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2021-10-22 22:42:16 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2021-10-22 22:42:16 +0200
commit84d6383e7e10df0b7e3e5dfc839fe7c68657d133 (patch)
treefbc6f0f9df74c7c50f31b4906410f5b6ad38b8bb /.zsh_functions/mpvshuffledir
parent97e0461b3938abc7cf0cff770a87c1f0c90ec507 (diff)
autoload functions part 2
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) \
+ $@