79686307

Date: 2025-07-01 15:52:47
Score: 1.5
Natty:
Report link

Just for future reference, another way to achieve the same (which is mpv specific) is

play-music()
{
    local selected=($(find "${PWD}" -mindepth 1 -maxdepth 1 -type f -iname "*.mp3" | LC_COLLATE=C sort | fzf))

    mpv --playlist=<(printf "%s\n" "${selected[@]}") </dev/null &>/dev/null & disown
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rittwik Chatterjee