From 770961c6c463593311ab1869fdd7471163e7d3e8 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Fri, 8 Apr 2022 22:36:58 +0200 Subject: [PATCH] feat(fish): adds a function to plan a random video in the current folder --- fish/.config/fish/functions/play-random.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fish/.config/fish/functions/play-random.fish diff --git a/fish/.config/fish/functions/play-random.fish b/fish/.config/fish/functions/play-random.fish new file mode 100644 index 0000000..eaeafc4 --- /dev/null +++ b/fish/.config/fish/functions/play-random.fish @@ -0,0 +1,7 @@ +function play-random + set -l t (random choice *.mp4) + echo (string repeat -n 60 "-") + echo $t + echo (string repeat -n 60 "-") + mpv $t +end