Aidy
put
IRB.conf[:AUTO_INDENT]=true
in your irbrc file, this should do the trick.
I have done a full search on *irbrc* and nothing is returned. I am
using ruby-1.8.4.
Cheers
Aidy
The file is called .irbrc (with a dot), and resides in your home
folder. ~/.irbrc as they say in UNIX-speak. If you are on Windows, I'm
not sure where that should live.
on win32 I have just set an IRBRC=\path\to\file env variable and it
works fine, I never investigated where my home was supposed to be :)
[drive]:\documents and settings\[username]
I believe you can use _irbrc, as windows won't let you create .irbrc
through explorer. You can create it programatically though.
File.open( "C:\\documents and setting\\administrator\\.irbrc", "w" )
do |f|
f.puts "# Heres a comment"
end