From: Robert Klemme Date: 2004-03-11T01:49:38+09:00 Subject: Re: ruby power tools "Simon Strandgaard" schrieb im Newsbeitrag news:pan.2004.03.10.16.22.40.269464@adslhome.dk... > On Wed, 10 Mar 2004 16:04:33 +0000, gabriele renzi wrote: > > > il Wed, 10 Mar 2004 16:55:08 +0100, shasckaw ha > > scritto:: > > > >>Has anybody already thought about a project like "Perl Power Tools" but > >>in ruby? Here is the link: http://www.perl.com/language/ppt/ > >>What do you think about that idea? > >> > > > > from time to time people suggest it, togheter with a rubyshell. > > But I don't think there is something real to look at. > > That would be cool, anyway :) > > A rubyshell would be nice to have. > > At the moment I am using tcsh, which has good tab-completion features. .... but uuuuugly scripting. Did you try bash? See http://www.gnu.org/software/bash/manual/bashref.html#SEC113 > However it would be really sweet if the completion code were Ruby. > > > Here is some of my current completion rules (not pretty) > > complete make 'p@1@`awk -F: '\''/^[^ \t#\/][^=:]*:/ {print $1 }'\'' [Mm]akefile `@' > complete gv "n/*/f:*{$PS,$PDF,$GZ}/" > complete man 'p/*/c/' > complete {vim,vi,more,less} 'n/*/f:^*.{o,a,dvi,gz,z,Z,zip,tgz}/' > complete unzip 'n/*/f:*.{zip,ZIP}/' > complete ruby 'n/*/f:*.{rb,erb}/' Hm, AFAIK irb uses readline. Maybe one can set some readline hooks and do implement completion there? Then irb =~ rubysh. Kind regards robert