What were you listening to when you made that?
Shell Makefile AppleScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
test
.gitignore
.music
.travis.yml
CHANGELOG.md
LICENSE.txt
Makefile
README.md

README.md

dotmusic Build Status

Installation

Homebrew

brew tap justincampbell/formulae
brew install dotmusic

Package

wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic
tar -zxvf dotmusic-latest.tar.gz
cd dotmusic-latest/
make install

Usage

Just run dotmusic, and the .music file in your project root will be appended with the current artist, if it doesn't already exist. Dotmusic current supports iTunes, Rdio and Spotify.

You can also run dotmusic -p to only print the artist name.

Add this to your $PROMPT_COMMAND for the best experience:

PROMPT_COMMAND='(dotmusic &)'

The & backgrounds it, and the parentheses make it silent.

If you already have a $PROMPT_COMMAND, extract it into a function:

prompt_command() {
  (dotmusic &)
  [ -d .git ] && git symbolic-ref --short HEAD
}

PROMPT_COMMAND='prompt_command'

If you don't want this as noise in all of your git repos, add it to your global ~/.gitignore:

echo ".music" >> ~/.gitignore
git config --global core.excludesfile ~/.gitignore