On 01/05/2007, Harold Hausman <hhausman / gmail.com> wrote:
> On 5/1/07, Michal Suchanek <hramrach / centrum.cz> wrote:
> > I use ruby on Windows and I never really needed to use the windows
> > commandline in connection with ruby. The one click installer
> > associates scripts with ruby so all I need is to write the script in
> > an editor and doubleclick it. But a windows shell extension "irb here"
> > similar to the MS "Command Prompt Here" could be useful.
> >
>
> What a great idea! And so easily done. (:
>
> First grab this and put it in C:\ruby\:
> http://www.danceliquid.com/irbhere/irbhere.bat
>
> Then grab this and double click it to import it into your registry:
> http://www.danceliquid.com/irbhere/irbhere.reg
>
> Then right click a folder in Explorer (or even the little folder icon
> in the top left of an open Explorer window) and choose "irb here!"
>
Nice hack

It has the same flaw as the MS Command Prompt Here, though. You can
only run the prompt in a folder that you see closed, not one that is
already open.

I guess it works well within limitations of the environment.

Thanks

Michal