Hi,
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…?
My idea is to not use a config file to customize my configurations,
but to
use some irb env variables to set those before I invoke the irb.
Thanks in advance,
Narayanan
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