Skip to content

justincampbell/dotmusic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotmusic Build Status

Installation

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

Stars

Watchers

Forks

Packages

No packages published