Skip to content

Instantly share code, notes, and snippets.

@revans
Created August 3, 2010 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revans/506990 to your computer and use it in GitHub Desktop.
Save revans/506990 to your computer and use it in GitHub Desktop.
#!/bin/bash
switch () {
rvm $1
$(switch_textmate_rvm_version)
local v=$(rvm_version)
echo "Switch to Ruby version: "$v
}
rvm_default () {
rvm --default $1
$(switch_textmate_rvm_version)
}
function rvm_version () {
ruby --version
}
function switch_textmate_rvm_version () {
rvm wrapper $1 textmate
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment