feat(fish): adds a function to plan a random video in the current folder
This commit is contained in:
parent
048e2b01ec
commit
770961c6c4
1 changed files with 7 additions and 0 deletions
7
fish/.config/fish/functions/play-random.fish
Normal file
7
fish/.config/fish/functions/play-random.fish
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue