Name: [078] Eric Lake
Member: 36 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. ...

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

in series: rubyLakeIrbCompletionSeries

video tutorial by Eric Lake

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

Video Tutorials related by tag:

web_development videos video time test shell running ruby python prompt make logic language ipython interactive information guides guide files file config code changes application

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 1979 (since July 30th)
  • Plays in last week: 10
  • 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.

Please provide your email address (won't be published)

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?


Learn Python the easy way!
If you want to learn the Python programming language from a very gentle start or are looking to increase your ability to do cool things with Python, check out our club
View this series as a one-page learning-path
This feature is for club members. Click here to find out more.
Your email address will not be published.

Show some quick comments >>