Created
May 5, 2011 03:00
-
-
Save natebenes/956463 to your computer and use it in GitHub Desktop.
What the commit and ClassNamer addins for ZSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
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.
Cool, thanks Aaron! I updated it to match.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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":
This will push a commit with a random message from http://whatthecommit.com.