I have a similar function in my bashrc, which also relies on youtube-dl (which is amazing, btw, it does a LOT more than YouTube – bandcamp, SoundCloud, etc).<p>`play` will instantly play any song (great for parties), and `mp3` will download it: <a href="https:&#x2F;&#x2F;github.com&#x2F;exogen&#x2F;dotfiles&#x2F;blob&#x2F;730fb8e2b72b2fc3aa3d90b889874bb5195e1d07&#x2F;.profile#L65" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;exogen&#x2F;dotfiles&#x2F;blob&#x2F;730fb8e2b72b2fc3aa3d...</a>