Description

YAIH is an acronym that stands for Yet Another IRB History. It’s a gem that provides bash like methods for interfacing with IRB history.

Features

The aim of this gem is providing a bash like history to IRB. If you require it in your irbrc you’ll get the following methods:

  • h The h method prints the last n(10 as default) lines of your IRB history.
  • hgrep It takes a string as only argument and greps your IRB history.
  • h! It takes a range of lines to execute from your IRB history.

Roadmap

  • write some tests
  • includes a proc to erase history duplicate lines
  • make the gem configurable with some options like default printed lines number, history decoration type, etc.

Copyright

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details.