Background music for your git commits
Inserts the currently playing 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:
You need to have git (obviously) and playerctl installed. The latter is a command-line utility for controlling media players that implement the MPRIS D-Bus interface specification.
You can install it via your favourite package manager, e.g.:
yay -S playerctl
On Arch Linux based systems.
sudo apt-get install playerctl
On Debian based systems.
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
chmod +x /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.

