Skip to content

Instantly share code, notes, and snippets.

@larouxn
Created March 6, 2026 22:21
Show Gist options
  • Select an option

  • Save larouxn/01de613a4cae6503bb9fcfa04bc22f7b to your computer and use it in GitHub Desktop.

Select an option

Save larouxn/01de613a4cae6503bb9fcfa04bc22f7b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
readarray -d '' playlist < <(
find . \
-path '*/music/**' \
-not -name "*.jpg" -not -name "*.png" \
-not -name "*.cue" -not -name "*.log" -not -name "*.m3u" -not -name "*.toc" |
fzf --multi --print0
)
if [[ "${#playlist[@]}" -gt 0 ]]; then
git annex get "${playlist[@]}"
mpv --video=no "${playlist[@]}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment