Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

What were you listening to when you made that?

Resources

License

Packages

No packages published
You can’t perform that action at this time.