Permalink
Browse files

wah! finally Googled a bit to find `-playlist` as an excellent soluti…

…on to the problem of play an album of my music.
  • Loading branch information...
1 parent c9e4a2d commit 1ea541a0c4d455b7314556d4eccaf72b7ffaaf06 @jzacsh committed Nov 11, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 share/mplaydir
View
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+_n="$(basename "$0")"
+[[ -r "$1" && -d "$1" ]] || {
+ printf 'Error: "%s" is not a readable directory\n' "$1" >&2
+ printf 'USAGE: %s MUSIC_DIR\n' "$_n" >&2
+ exit 1
+}
+mplayer -playlist <(find "$1" -type f | sort)

0 comments on commit 1ea541a

Please sign in to comment.