Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
b2ea7d3e
Commit
b2ea7d3e
authored
Mar 28, 2014
by
Stanislav Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Ruby 2.1.1 support to rvm plugin
parent
70dfb91b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
rvm.plugin.zsh
plugins/rvm/rvm.plugin.zsh
+12
-0
No files found.
plugins/rvm/rvm.plugin.zsh
View file @
b2ea7d3e
...
@@ -6,6 +6,7 @@ alias gemsets='rvm gemset list'
...
@@ -6,6 +6,7 @@ alias gemsets='rvm gemset list'
local
ruby18
=
'ruby-1.8.7'
local
ruby18
=
'ruby-1.8.7'
local
ruby19
=
'ruby-1.9.3'
local
ruby19
=
'ruby-1.9.3'
local
ruby20
=
'ruby-2.0.0'
local
ruby20
=
'ruby-2.0.0'
local
ruby21
=
'ruby-2.1.1'
function
rb18
{
function
rb18
{
if
[
-z
"
$1
"
]
;
then
if
[
-z
"
$1
"
]
;
then
...
@@ -40,6 +41,17 @@ function rb20 {
...
@@ -40,6 +41,17 @@ function rb20 {
_rb20
()
{
compadd
`
ls
-1
$rvm_path
/gems |
grep
"^
$ruby20
@"
|
sed
-e
"s/^
$ruby20
@//"
|
awk
'{print $1}'
`
}
_rb20
()
{
compadd
`
ls
-1
$rvm_path
/gems |
grep
"^
$ruby20
@"
|
sed
-e
"s/^
$ruby20
@//"
|
awk
'{print $1}'
`
}
compdef _rb20 rb20
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
{
function
rvm-update
{
rvm get
head
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