TIL how to control Spotify from the terminal

Today I learnt that if you're using Oh My Zsh, you can control your Spotify app from the command line.

Here's how:

  1. Sign into your Spotify developer account and create a client id
  2. Open your ~/.zshrc file and add osx to your list of plugins. Save
  3. Open your /Users/<username>/.shpotify.cfg file and add your CLIENT_ID and CLIENT_SECRET. Save
  4. Restart your terminal and try spotify play album Teal Album

That is all.