Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seandenigris/yaih

Yet Another IRB History gem
https://github.com/seandenigris/yaih

Last synced: 6 days ago
JSON representation

Yet Another IRB History gem

Awesome Lists containing this project

README

        

h2. 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.
Please take a look to "this":http://lucapette.com/irb/improving-irb-history/ article if you want to dig into IRB history.

h2. 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.

h2. Roadmap

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

h2. 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.