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
Ohmyzsh
Commits
c867684f
Commit
c867684f
authored
Mar 26, 2013
by
Robby Russell
Browse files
Merge pull request #1607 from gekken/master
added ruby 2.0.0 to rvm plugin
parents
5b7f49e6
ccdc5518
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/rvm/rvm.plugin.zsh
View file @
c867684f
...
@@ -4,7 +4,8 @@ alias rubies='rvm list rubies'
...
@@ -4,7 +4,8 @@ alias rubies='rvm list rubies'
alias
gemsets
=
'rvm gemset list'
alias
gemsets
=
'rvm gemset list'
local
ruby18
=
'ruby-1.8.7-p334'
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
{
function
rb18
{
if
[
-z
"
$1
"
]
;
then
if
[
-z
"
$1
"
]
;
then
...
@@ -28,6 +29,17 @@ function rb19 {
...
@@ -28,6 +29,17 @@ function rb19 {
_rb19
()
{
compadd
`
ls
-1
$rvm_path
/gems |
grep
"^
$ruby19
@"
|
sed
-e
"s/^
$ruby19
@//"
|
awk
'{print $1}'
`
}
_rb19
()
{
compadd
`
ls
-1
$rvm_path
/gems |
grep
"^
$ruby19
@"
|
sed
-e
"s/^
$ruby19
@//"
|
awk
'{print $1}'
`
}
compdef _rb19 rb19
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
{
function
rvm-update
{
rvm get
head
rvm get
head
rvm reload
# TODO: Reload rvm completion?
rvm reload
# TODO: Reload rvm completion?
...
...
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