Skip to content

Instantly share code, notes, and snippets.

@sragu
Created August 1, 2010 11:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sragu/503243 to your computer and use it in GitHub Desktop.
Save sragu/503243 to your computer and use it in GitHub Desktop.
##Srinivasan Raguraman
##Shell script to extract current message from whatthecommit.com
#Add the below snippet to you .profile/.bashrc
whatthecommit(){
curl -s http://whatthecommit.com/ | tr -s '\n' ' ' \
| grep -so 'p>\(.*\)</p' | sed -n 's/..\(.*\)..../\1/p';
}
#Sample Usage:
# git commit -m"Jira #404 - `whatthecommit`"
#
@bojieli
Copy link

bojieli commented Feb 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment