Here's something i've added to my .bashrc that lets me type in simply 'play <some song name>' using youtube-dl and mplayer (I forget where I found this gem, and sorry for weird formatting, won):
function play {
youtube-dl --default-search=ytsearch: \
--youtube-skip-dash-manifest \
--output="${TMPDIR:-/tmp/}%(title)-s%(id)s.%(ext)s" \
--restrict-filenames \
--format="bestaudio[ext!=webm]" \
--exec=mplayer -vvv "$*"
}
play rick astley never gonna give you up