Skip to content

Instantly share code, notes, and snippets.

@mudge
Created October 5, 2009 15:21
Show Gist options
  • Save mudge/202182 to your computer and use it in GitHub Desktop.
Save mudge/202182 to your computer and use it in GitHub Desktop.
Bash functions to switch between Ruby and JRuby.
function usejruby {
jrubypath=/opt/local/jruby/bin
PATH=$jrubypath:${PATH/$jrubypath:/}
}
function usecruby {
crubypath=/opt/local/ruby-enterprise/bin
PATH=$crubypath:${PATH/$crubypath:/}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment