mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Correct structure
This commit is contained in:
parent
37c82833f1
commit
55eaf57541
2 changed files with 9 additions and 23 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue