From 1c57fb75966e791f38ebd529fc3af9d42c10949f Mon Sep 17 00:00:00 2001 From: bkimbriel Date: Sat, 14 Dec 2013 19:42:31 -0800 Subject: [PATCH] add spotify controls to osx plugin --- plugins/osx/osx.plugin.zsh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 608ec3789..803b92509 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -191,3 +191,29 @@ function itunes() { osascript -e "tell application \"iTunes\" to $opt" } +# Spotify control function +function spotify() { + local opt=$1 + shift + case "$opt" in + launch|play|pause|quit) + ;; + next|previous) + opt="$opt track" + ;; + ""|-h|--help) + echo "Usage: spotify