Skip to content
/ irbrc Public
forked from logankoester/irbrc

My .irbrc settings for interactive Ruby

Notifications You must be signed in to change notification settings

jschank/irbrc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

How to install

  1. Install the prerequisite ruby gems: map_by_method, wirble, what_methods
  2. Clone this repo using git
    git clone git://github.com/logankoester/irbrc.git ~/projects/irbrc
  3. Symlink the file to ~/.irbrc
    ln -s ~/projects/irbrc/irbrc ~/.irbrc
  4. Run ‘irb’ and enjoy!

These settings will also affect your script/console sessions in Rails

What it does

  • Sets a shorter prompt (“>>”)
  • Saves your command history between irb sessions
  • Adds color highlighting to your output
  • Type “clear” to clear the screen (or just “c”)
  • Enables automatic indentation
  • Loads Rubygems for you
  • Loads Dr Nic’s map_by_method
  • Loads Dr Nic’s what_methods
  • Loads pp (pretty print)
  • Loads readline
  • Implements Object.pm, which pretty prints the methods of an object
  • Sketches – http://sketches.rubyforge.org/

About

My .irbrc settings for interactive Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published