export RUBYLIB=/newsearchdir
···
On Fri, 20 Jun 2003 23:11:56 +0000, Its Me wrote:
“Sean O’Dell” sean@REMOVEME.celsoft.com wrote
$LOAD_PATH << “/newsearchdir”
Is there a way to set this up so it is always executed (e.g. ini-file, or
set environment variable)?
Windows has environment variables. For a single DOS session you can use
the SET command:
SET RUBYLIB=…
How you set them permanently depends on which version you’re running. If
you’re running XP or NT, go to Control Panel->System and hunt around. In
XP I think it’s under an Advanced button. Or go to Help and enter
“Environment”.
···
On Sat, 21 Jun 2003 23:36:12 +0000, Its Me wrote:
Great, thanks.
But other than typing it into irb, where do I put this? I’m on Windows,
and could not find any ini files or environment variables. Something
that Ruby consults each time it runs.
“Tim Hunter” cyclists@nc.rr.com wrote in message
news:pan.2003.06.20.23.51.01.158366@nc.rr.com…
On Fri, 20 Jun 2003 23:11:56 +0000, Its Me wrote:
“Sean O’Dell” sean@REMOVEME.celsoft.com wrote
$LOAD_PATH << “/newsearchdir”
Is there a way to set this up so it is always executed (e.g.
ini-file,
or
set environment variable)?
export RUBYLIB=/newsearchdir
$ grep irbrc /usr/local/lib/ruby/1.6/irb/*
/usr/local/lib/ruby/1.6/irb/init.rb: rcs.push File.expand_path(“~/.irbrc”) if ENV.key?(“HOME”)
/usr/local/lib/ruby/1.6/irb/init.rb: rcs.push “.irbrc”
/usr/local/lib/ruby/1.6/irb/init.rb: rcs.push “_irbrc”
/usr/local/lib/ruby/1.6/irb/init.rb: rcs.push “$irbrc”
Regards,
Brian.
···
On Sun, Jun 22, 2003 at 08:47:39PM +0900, Tim Hunter wrote:
On Sat, 21 Jun 2003 23:36:12 +0000, Its Me wrote:
Great, thanks.
But other than typing it into irb, where do I put this? I’m on Windows,
and could not find any ini files or environment variables. Something
that Ruby consults each time it runs.