Created
March 6, 2026 22:21
-
-
Save larouxn/01de613a4cae6503bb9fcfa04bc22f7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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