For some reason it is difficult to use the [] and {} characters when using IRB with a non-english keyboard on Windows XP. To get it working together with tab completion:
- Create a new environment variable called “HOME” and set it to your user home folder (e.g. C:\Documents and Settings\peterk).
- Create a text dcument called “.inputrc” in your user home folder with the following content:
Ik0tWyI6ICJbIg0KIk0tXSI6ICJdIg0KIk0teyI6ICJ7Ig0KIk0tfSI6ICJ9Ig0KIk0tXCI6ICJcIg0KIk0tfCI6ICJ8Ig0KIk0tQCI6ICJAIg0KIk0tfiI6ICJ+IiA=
- Make sure irb.bat is using the –readline option (irb.bat is located in the bin folder of your ruby installation).
That’s it!