branch dance
theme music for your branches
requirements
- macos or linux
- git (obviously)
- spotify-tui (set it up)
setup
npx branch-dance
alternatively manual install
install the hook by grabbing post-checkout
from the repo and putting it in your .git/hooks
directory
$ mv post-checkout .git/hooks/post-checkout
configure music per branch using spotify uris. the script reads MUSIC
file in your repo's root.
$ echo "main=spotify:track:7E6VM4eg8ADYdgbMnXO97d" >> MUSIC
usage
after setup start switching branches while spotify is on
$ git checkout main
Switched to branch 'main'
▶ Komm, süsser Tod - Astrophysics
configure branches and tracks/albums using spotify uris in MUSIC
file in your repo's root