16 lines
232 B
Bash
16 lines
232 B
Bash
#!/bin/bash
|
|
switch () {
|
|
rvm $1
|
|
local v=$(rvm_version)
|
|
rvm wrapper $1 textmate
|
|
echo "Switch to Ruby version: "$v
|
|
}
|
|
|
|
rvm_default () {
|
|
rvm --default $1
|
|
rvm wrapper $1 textmate
|
|
}
|
|
|
|
function rvm_version () {
|
|
ruby --version
|
|
} |