Skip to content

Instantly share code, notes, and snippets.

View ahonc's full-sized avatar

Aleksander Honc ahonc

  • Poland
  • 13:57 (UTC +01:00)
View GitHub Profile
@ahonc
ahonc / rubywrap.sh
Created April 17, 2012 13:00
Small wrapper for Ruby scripts running on RVM Single-User installations
#!/bin/bash
# Change those for valid ones
HOMEDIR=/home/yourlogin
RUBYVER="1.9.2-p318"
# Adding to $PATH paths for rvm and ruby executables
PATH=$PATH:$HOMEDIR/.rvm/bin:$HOMEDIR/.rvm/rubies/ruby-$RUBYVER/bin/
# Creating variable containing path to installed gems
RUBYLIB=$HOMEDIR/.rvm/gems/ruby-$RUBYVER/gems/:$HOMEDIR/.rvm/gems/ruby-$RUBYVER@global/gems/