Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

added ruby 2.0.0 to rvm plugin #1607

Merged
merged 1 commit into from

2 participants

@gekken

1) be gentle - first git pull request
2) added ruby 2.0.0 alias and function

@gekken gekken Update plugins/rvm/rvm.plugin.zsh
1) be gentle - first git pull request
2) added ruby 2.0.0 alias and function
ccdc551
@robbyrussell robbyrussell merged commit c867684 into robbyrussell:master
@robbyrussell

Thanks @gekken !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 14, 2013
  1. @gekken

    Update plugins/rvm/rvm.plugin.zsh

    gekken authored
    1) be gentle - first git pull request
    2) added ruby 2.0.0 alias and function
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 1 deletion.
  1. +13 −1 plugins/rvm/rvm.plugin.zsh
View
14 plugins/rvm/rvm.plugin.zsh
@@ -4,7 +4,8 @@ alias rubies='rvm list rubies'
alias gemsets='rvm gemset list'
local ruby18='ruby-1.8.7-p334'
-local ruby19='ruby-1.9.3-p194'
+local ruby19='ruby-1.9.3-p385'
+local ruby20='ruby-2.0.0-rc2'
function rb18 {
if [ -z "$1" ]; then
@@ -28,6 +29,17 @@ function rb19 {
_rb19() {compadd `ls -1 $rvm_path/gems | grep "^$ruby19@" | sed -e "s/^$ruby19@//" | awk '{print $1}'`}
compdef _rb19 rb19
+function rb20 {
+ if [ -z "$1" ]; then
+ rvm use "$ruby"
+ else
+ rvm use "$ruby20@$1"
+ fi
+}
+
+_rb20() {compadd `ls -1 $rvm_path/gems | grep "^$ruby20@" | sed -e "s/^$ruby20@//" | awk '{print $1}'`}
+compdef _rb20 rb20
+
function rvm-update {
rvm get head
rvm reload # TODO: Reload rvm completion?
Something went wrong with that request. Please try again.