-
-
Save dunguyenn/d3946857648704790a8e6b0a5a0ad629 to your computer and use it in GitHub Desktop.
listen to random music with afplay
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
brew install gshuf |
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
find *.mp3 | gshuf -n 1 | tr '\0\n' '\n\0' | xargs -0 afplay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment