Name: [078] Eric Lake
Member: 90 months
Authored: 1 videos
Description: I am a Linux geek that really wants to learn some programming skills. Namely Python but Ruby would be OK too. ...

Enabling Tab Completion in IRB [ID:071] (1/1)

in series: rubyLakeIrbCompletionSeries

video tutorial by Eric Lake, added 03/07

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

In many ways irb is to Ruby what IPython is to Python. Irb is a interactive shell for the Ruby language that allows you to test your code and make sure that you have the syntax and logic correct before it goes into your application.

In this video I will show you how to:

  • Use irb
  • Change the default prompt
  • Add tab completion

I give credit to whytheluckystiff for the config file and also to his guide to irb.

See additional information and the .irbrc file in the wiki(RubyLakeIrbCompletion).

Uploaded on 7th October 2006, running time 3 minutes.

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 2989 (since July 30th)
  • Plays in last week: 1
  • Published: Sometime before 1st March 2007 (in other words - we don't remember!)

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>








All comments excluding tick-boxed quick-comments

Thanks for the input. My irb prompt is not working after I tried it. I thought it was installed a few months ago.


19. libintia Thu, 13 May 2010 15:50

Unfortunately a file cannot start with a (DOT) in windows

but thanks


18. Mario Pérez Rodríguez Thu, 11 Mar 2010 05:43

It was very userful.

Thanks.


I really enjoyed the demo...I am a returning programmer...I was off in the nether lands of writing for the last few years and am looking to working smarter with testing and have decided to use Ruby and Watir. So I am jumping in with both feet but have some catching up to do and it is the little things like this that are making a huge difference for me. THANK YOU!!!!


16. Ian James Thu, 11 Feb 2010 13:16

Thanks. I only stumbled on this by accident and it will remove a major irritation and having a windows environment is enough irritation already.


15. anonymous Mon, 23 Nov 2009 11:34

Thanks, works great!


14. anonymous Wed, 18 Nov 2009 15:33

Thanks for taking the time to make this video!


13. anonymous Fri, 06 Nov 2009 14:35

Brilliant.. thanks for this makes my journey that much easier


12. anonymous Fri, 25 Sep 2009 01:49

little nice tip well explained


11. anonymous Wed, 29 Apr 2009 21:11

Nice vid, Eric! That's the first ShowMeDo I've ever seen, but it was well done. I can't wait to watch some more and see if they're just as good! Thanks for taking the time to publish it.

Cheers,

Brett Campbell

Santa Barbara, CA


10. anonymous Tue, 21 Apr 2009 17:48

great demo. Thanks a lot this is very useful for me, I'm lazy from typing he he he


great feature I wasn't aware of, THANK YOU!


8. anonymous Mon, 17 Sep 2007 06:36

Hi all!

Very interesting information! Thanks!

Bye


7. anonymous Thu, 16 Aug 2007 17:38

This worked for windows too, as you described.

Now I'd like to do the same with fxri

Thanks a lot! :-)

Wolfgang


6. anonymous Mon, 11 Jun 2007 12:18

i am a newbie to ruby and this helped me a lot thanks.


5. anonymous Mon, 11 Jun 2007 12:14

i am a newbie to ruby and this helped me a lot thanks.


4. anonymous Mon, 07 May 2007 08:26

thanks i like the sound of completion,and your thanks of watching ;)

thanks eric for this helpful tips.


Hi Eric. Thanks for updating the wiki entry with the extra information, I'm sure that'll be useful to new Ruby users.

I hope that we get more Ruby videos, it'll be a great resource for new coders to come see the differences (both positive and negative) between Ruby, Python and Perl.

Cheers!

Ian.


Johnny,

I found this site http://www.rubyweeklynews.org/20051023 and it says that on a Mac you need the .irbrc file to look like this:

require 'irb/completion'

ARGV.concat [ "--readline", "--prompt-mode", "simple" ]

I don't have a Mac to try it on but I hope that helps you. Please reply back here and let us know.


Hi there!

Thank you for this sexy prompt, very fine!

But I'm running OS X and in the Terminal after enabling tab completion in .irbrc when I hit tab the cursor still moves to the right one tab and nothing else happens... hmmm...

Any suggestions?


Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

By the Same Author

Content

Feedback

Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.

feedback@showmedo.com