Skip to content

Instantly share code, notes, and snippets.

@knewter
Created May 26, 2010 21:53
Show Gist options
  • Save knewter/415131 to your computer and use it in GitHub Desktop.
Save knewter/415131 to your computer and use it in GitHub Desktop.
== Utility Belt ==
http://utilitybelt.rubyforge.org/
`gem install utility_belt`
`vim ~/.irbrc`
require 'rubygems'
require 'utility_belt'
"Utility Belt is a grab-bag of tricks, tools, techniques, trifles, and toys for IRB, including convenience methods, language patches, and useful extensions. It also includes a couple command-line widgets. Its primary inspirations were an awesome gem called Wirble and a blog post by Amy Hoy called "Secrets Of The Rails Console Ninjas"."
---------------
== Features ==
* Interactively edit IRB code in your preferred text editor
* Read from and write to OS X clipboard
* Post your code to Pastie with one command (OS X only)
* Kick-ass Unix-style history buffer
* Write command history to file or vi
* Grep classes and methods for strings
* Verbosity controls for regular IRB and Rails console
* Finder shortcuts for Rails console
* Upload shortcut for Amazon S3
* Command-line Amazon S3 upload script
* Command-line Google shortcut (OS X only)
* Auto-indentation
* _ special variable (like Unix shell var !!)
* Extremely basic themes for Wirble syntax coloring
* Pascal/JavaScript-style "with" statement
* String#to_proc
* Grammatically-correct is_an? method - no more "is_a? Array" statements
* One-character exit command
---------------
== What's so awesome about it? ==
>> vi
( opens up a vim console which will execute in its own context when you hit :wq. Maintains history, so if there was a bug in your code, >> vi again will get you to vim with the same code loaded, to fix it )
---------------
== Seriously, that's it? ==
No, there are tons more features. I just really only care about that one :)
http://utilitybelt.rubyforge.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment