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