Description

YAIH is an acronym that stands for *Y*et *A*nother *I*RB *H*istory.

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

  • document source code
  • 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.