Using RVM with Shebang
If you want a directly executable Ruby script to use a specific version of ruby, then use the following line as the shebang instead of #!/urs/bin/env ruby.
#!/usr/bin/env rvm 1.9.3@mygemset do ruby
Written by Slava Ptsarev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#