Looper + FZF: Choosing and Playing Music from the CLI
  • assumes looper is installed - this Rust program I created to play music from the CLI, it's called Looper (opens in a new tab).
  • assumes fzf is installed, if not you can do it like this:
brew install fzf
# To install useful key bindings and fuzzy completion:
$(brew --prefix)/opt/fzf/install
  • get all files in my music dir
  • pipe to fzf with some formatting
  • then pipe to my program that plays mp3s correctly with quotes around it
mzk () {
  find $HOME/.kev/listen -type f | fzf --height 40% --reverse | tr '\n' '\0' | xargs -0 $HOME/.kev/bin/looper play --url
Updated Last:2023-01-05T22:32:04.000Z