From: Gabriel Horner Date: 2010-06-18T16:06:38+09:00 Subject: Re: Setting IRB Configurations using env variables? > Suppose I need to have IRB configurations before I invoke IRB like : > > IRB.conf[:IGNORE_EOF]=true > IRB.conf[:VERBOSE]=false > > This can be set in config files such as ~/.irbrc etc.. and saved before > irb > is invoked. > > But are there *environment variables I can set in shell to set those > configurations directly* before I invoke IRB..? You can't set those configurations with ENV variables. To verify yourself, here's the file were irb intializes all of its configurations: http://github.com/ruby/ruby/blob/trunk/lib/irb/init.rb. You'll notice some configurations can be manipulated with commandline options to irb. Otherwise you have to use .irbrc. Gabriel -- Posted via http://www.ruby-forum.com/.