[071] Enabling Tab Completion in IRB (1/1)
in series: rubyLakeIrbCompletionSeries
video tutorial by Eric Lake
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. ...
Our authors tell us that feedback from you is a big motivator. Please take a few moments to let them know what you think of their work.
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:
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.
Thanks, works great!
Thanks for taking the time to make this video!
Brilliant.. thanks for this makes my journey that much easier
little nice tip well explained
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
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!
Hi all!
Very interesting information! Thanks!
Bye
This worked for windows too, as you described.
Now I'd like to do the same with fxri
Thanks a lot! :-)
Wolfgang
i am a newbie to ruby and this helped me a lot thanks.
i am a newbie to ruby and this helped me a lot thanks.
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?



