Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
b2ea7d3e
Commit
b2ea7d3e
authored
Mar 28, 2014
by
Stanislav Schultz
Browse files
Add Ruby 2.1.1 support to rvm plugin
parent
70dfb91b
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/rvm/rvm.plugin.zsh
View file @
b2ea7d3e
...
...
@@ -6,6 +6,7 @@ alias gemsets='rvm gemset list'
local
ruby18
=
'ruby-1.8.7'
local
ruby19
=
'ruby-1.9.3'
local
ruby20
=
'ruby-2.0.0'
local
ruby21
=
'ruby-2.1.1'
function
rb18
{
if
[
-z
"
$1
"
]
;
then
...
...
@@ -40,6 +41,17 @@ function rb20 {
_rb20
()
{
compadd
`
ls
-1
$rvm_path
/gems |
grep
"^
$ruby20
@"
|
sed
-e
"s/^
$ruby20
@//"
|
awk
'{print $1}'
`
}
compdef _rb20 rb20
function
rb21
{
if
[
-z
"
$1
"
]
;
then
rvm use
"
$ruby21
"
else
rvm use
"
$ruby21
@
$1
"
fi
}
_rb21
()
{
compadd
`
ls
-1
$rvm_path
/gems |
grep
"^
$ruby21
@"
|
sed
-e
"s/^
$ruby21
@//"
|
awk
'{print $1}'
`
}
compdef _rb21 rb21
function
rvm-update
{
rvm get
head
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment