Last Updated: February 25, 2016
·
888
· 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 *

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside