Background music for your git commits
Inserts the currently playing iTunes or Spotify track in your git commit messages.
This is done in the "prepared" message, so you can still edit it in your $EDITOR if you decide the track is too awesome or something.
If you are doing a quick commit message e.g. with -m
, things will still work:
Requires a macOS environment (for now).
Clone this repository and copy the git-muzak.sh
script to somewhere in your $PATH
, with your desired name, e.g.:
cp git-muzak.sh /usr/local/bin/git-muzak
For simplicity, this is exactly what is done for you via make install
.
To enable for a git repository, once you are somewhere inside its directory, simply do git muzak --install
.
$ git muzak --install
√♬ Linked .git/hooks/prepare-commit-msg to /usr/local/bin/git-muzak
Behind the scenes, this will symlink the script as the prepare-commit-msg
git hook.