Skip to content

Instantly share code, notes, and snippets.

@natebenes
Created May 5, 2011 03:00
Show Gist options
  • Save natebenes/956463 to your computer and use it in GitHub Desktop.
Save natebenes/956463 to your computer and use it in GitHub Desktop.
What the commit and ClassNamer addins for ZSH
what_the_commit () {
echo $(curl --silent http://whatthecommit.com/index.txt)
}
alias wtc='what_the_commit'
class_namer () {
echo $(curl --silent http://classnamer.com/index.txt)
}
alias cn='class_namer'
@natebenes
Copy link
Author

If you add this to the tail of your .zshrc or .bashrc, you should be able to type wtc or cn at the command prompt and get cool stuff. This of course leads to a game we call "commit roulette":

git commit -am "$(wtc)"

This will push a commit with a random message from http://whatthecommit.com.

Copy link

ghost commented Jun 15, 2012

There's no more need for sed! Now you can go to http://classnamer.com/index.txt and get just a class name, without the HTML.

@natebenes
Copy link
Author

natebenes commented Jun 15, 2012 via email

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