We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

cczona on 05/12/08


Tagged

path ruby require


Versions (?)


Add paths to Ruby 'require'


Published in: Bash 


Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:

  1. export RUBYLIB=$RUBYLIB:/home/foo/ruby/mylib

Report this snippet 

You need to login to post a comment.