Set search path for Ruby scripts
Table of Content
Suppose that the search path is ~/ruby. Add the following line in .bashrc.
Put ruby scripts in ~/ruby. Suppose that “test.rb” is in this directory. Call the script with -S option in any directory.
$ ruby -S test.rb