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