[zsh] audacious-hack: support multiple directories and only match audio files
This commit is contained in:
parent
1233435b9d
commit
b9a2749551
|
@ -125,7 +125,9 @@ function mkvextract-all-attachments() {
|
||||||
# Audacious does not support symlinks; hack around that
|
# Audacious does not support symlinks; hack around that
|
||||||
function audacious-hack() (
|
function audacious-hack() (
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
audacious $(/bin/ls -1 $1/**/*(@)|sort -Vd)
|
for dir in $@; do
|
||||||
|
/bin/ls -1 $dir/**/*.(flac|m4a|mp3|ogg|opus)(@)
|
||||||
|
done|sort -Vd|tr '\n' '\0'|xargs -0 audacious
|
||||||
)
|
)
|
||||||
|
|
||||||
# Program aliases/env
|
# Program aliases/env
|
||||||
|
|
Reference in a new issue