Last Updated: February 25, 2016
·
661
· dedenf

git commit and mood + lastfm

many developers push their code to git repo with funny or sometimes silly comments (i do that sometimes) like this whatthecommit site, but maybe it will be more hips (like hipsters do) if i can fetch last.fm api from current listened music and add them to my commit message.

here's the idea

$ git commit -m "fixing some bugs $(last_fm)"

the last command is to insert my last.fm current track.
so if we browse the log it will be shown "fixing some bugs while listening to U2 - Stay". if i don't listened any track, it will return "with no music" (or any other message).

hipster geek

here's the gists on github of course

  • copy pasting from my blogpost at notes.dedenf.com *