Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remixz/git-song
Git hook for adding the currently playing song to a commit.
https://github.com/remixz/git-song
Last synced: about 1 month ago
JSON representation
Git hook for adding the currently playing song to a commit.
- Host: GitHub
- URL: https://github.com/remixz/git-song
- Owner: remixz
- Created: 2016-01-05T04:05:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-05T04:05:12.000Z (almost 9 years ago)
- Last Synced: 2024-08-11T00:47:10.816Z (3 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-song
Git hook for adding the currently playing song to a commit. [Experimental, and not actively maintained.](#caveats)
## Install
```bash
npm install git-song -g
```## Usage
Enter a git repository directory, and run `git-song --player=`. The only tested players are `itunes` and `spotify`. For example, if you use iTunes, run:
```bash
git-song --player="itunes"
```This will automatically add a `commit-msg` hook that'll add the currently playing song from iTunes. If there's no song playing, or the player isn't running, it won't add anything to your commit message. Otherwise, it'll add the following to the very bottom of your commit message:
```
:musical_note: Listening to "Song Name" by Artist :musical_note:
```## Caveats
* Mac OS X only.
* If the player currently isn't running, it'll launch it. This is an applescript limitation.