Correct structure

This commit is contained in:
Rafael Corrêa Gomes 2015-08-18 11:18:35 -03:00
commit 55eaf57541
2 changed files with 9 additions and 23 deletions

View file

@ -1,4 +1,4 @@
# Control Spotify at OS X Terminal # Spotify at OS X Terminal
An AppleScript for controlling Spotify through a terminal: An AppleScript for controlling Spotify through a terminal:
@ -19,17 +19,6 @@ allow.
* OS X Mountain Lion (10.8) * OS X Mountain Lion (10.8)
* OS X Lion (10.7) * 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 ## Usage
* To start Spotify playback, type `spotify start` or `spotify play`. * 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 shuffle, type `spotify shuffle`.
* To toggle repeat, type `spotify repeat`. * To toggle repeat, type `spotify repeat`.
* To show a list of these commands, just type `spotify`. * 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.

View file

@ -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 #!/usr/bin/env osascript
on run argv on run argv
if count of argv is equal to 0 then if count of argv is equal to 0 then
@ -148,4 +156,3 @@ on run argv
end tell end tell
end using terms from end using terms from
end run end run