cd to /music or so
alias pl='find -L "`pwd`" -iregex ".*.flac" -o -iregex
".*.aif" -o -iregex ".*.wav" -o -iregex ".*.mp3" -o -iregex
".*.m4a"|sort> .pls'
'pl' to generate the playlist (no id3 scanning so its fast)
'mp' to play everything, 'ma keyword' to play a grep
'ms keyword' to play it in order instead of shuffle
alias m=mplayer
mpl() { m -loop 0 -shuffle -playlist $*;}
mpo() { m -playlist $*;}
alias mp='mpl .pls'
ma() { grep -i "$*" .pls > .f && mpl .f;}
ms() { grep -i "$*" .pls > .f && mpo .f;}
aditionally some aliases for genres:
alias dub='ma "\(tubby\|scientist\|rac/\|rks/\|jah/\|dub\)"'
alias 313='ma
"\(dan.*\(curtin\|bell\)\|chicago\|r_and_s\|metroplex\|kms\|peacefrog\|modell\|deepchord\|acid\|titonton\|tejada\|morgan\|dbx\|moody\|parrish\|ranelin\|red.planet\|martian\|dj.\(assault\|godfather\|bone\)\|terrence\|mark.williams\|suburban\|detroit\|313\)"'
for streams a file ~/.ra like
# MIT
http://headphones.mit.edu:8000/
# Energy
mms://energylive.no-ip.info/Gerlens
# BC
http://amber.streamguys.com:4860/
# BelMizik
http://38.96.148.86:80/belmizikboston
# HRB
http://hrbinc-hi.streamguys.net
# RadioUn
http://zafemradio.com:9002
# Datz Hitz
http://208.64.160.43:8004/
etc
alias ra='mplayer -loop 0 -playlist ~/.ra'
alias ras='mplayer -loop 0 -shuffle -playlist ~/.ra'
or i use a webkit based browser for GUI playback
http://blog.whats-your.name/post/2010/10/11/%E2%80%83