#! /bin/zsh music () { local opts=$@ local src='http://listen.di.fm/public3/classiceurodance.pls' vlc $opts -I CLI $src } save-music () { music --sout "#gather:std{access=file, mux=ts, dst=all.ts}" } play-with-vlc () { local -a files files=($@) DISPLAY=":0" vlc -I CLI $files } alias pv=play-with-vlc