From 57610816bea0ee68b9747ecea684a160a3077248 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 31 Oct 2019 22:51:40 +0000 Subject: [PATCH] Make audacious hack work with many files --- home/.zshrc.local | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index 8ecacb2..c17d2be 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -144,10 +144,12 @@ function mullvad() ( # Audacious does not support symlinks; hack around that function audacious-hack() ( + audtool playlist-clear IFS=$'\n' for dir in $@; do /bin/ls -1 $dir/**/*.(flac|m4a|mp3|ogg|opus)(@) - done|sort -Vd|tr '\n' '\0'|xargs -0 audacious + done|sort -Vd|tr '\n' '\0'|xargs -0 -- audacious --enqueue + audacious --play ) # Program aliases/env