From 55eaf575416678bc1f1610c7509ca0747b59932b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Corr=C3=AAa=20Gomes?= Date: Tue, 18 Aug 2015 11:18:35 -0300 Subject: [PATCH] Correct structure --- plugins/spotify/README.md | 23 +------------------ .../spotify/{spotify => spotify.plugin.zsh} | 9 +++++++- 2 files changed, 9 insertions(+), 23 deletions(-) rename plugins/spotify/{spotify => spotify.plugin.zsh} (93%) diff --git a/plugins/spotify/README.md b/plugins/spotify/README.md index 99e68211f..cd7b8467e 100755 --- a/plugins/spotify/README.md +++ b/plugins/spotify/README.md @@ -1,4 +1,4 @@ -# Control Spotify at OS X Terminal +# Spotify at OS X Terminal An AppleScript for controlling Spotify through a terminal: @@ -19,17 +19,6 @@ allow. * OS X Mountain Lion (10.8) * OS X Lion (10.7) -## Installation - -The simplest way to install the script is to `clone` the repository, -`cd` into repository's directory, and run this command below -to make a symbolic link into `/usr/local/bin/`: - -```bash -ln -s $(pwd)/spotify /usr/local/bin/spotify -``` - - ## Usage * To start Spotify playback, type `spotify start` or `spotify play`. @@ -53,13 +42,3 @@ seconds to jump backwards. * To toggle shuffle, type `spotify shuffle`. * To toggle repeat, type `spotify repeat`. * To show a list of these commands, just type `spotify`. - -### Over SSH - -To enable the SSH server on OS X, go to Sharing in the System Preferences -and enable Remote Login. The Sharing screen will also then tell you the -command to use to connect to your Mac in the local network. - -## License - -You may use, adapt, modify, and etc. Any way you want. diff --git a/plugins/spotify/spotify b/plugins/spotify/spotify.plugin.zsh similarity index 93% rename from plugins/spotify/spotify rename to plugins/spotify/spotify.plugin.zsh index 96e36d956..eb79dc2dd 100755 --- a/plugins/spotify/spotify +++ b/plugins/spotify/spotify.plugin.zsh @@ -1,3 +1,11 @@ +# ------------------------------------------------------------------------------ +# FILE: spotify.plugin.zsh +# DESCRIPTION: oh-my-zsh Spotify plugin file. Spotify controls at OS X Terminal. +# AUTHOR: Rafael CorrĂȘa Gomes (rafaelcgstz at gmail dot com) +# FORK: https://github.com/dronir/SpotifyControl +# VERSION: 1.0.0 +# ------------------------------------------------------------------------------ + #!/usr/bin/env osascript on run argv if count of argv is equal to 0 then @@ -148,4 +156,3 @@ on run argv end tell end using terms from end run -