Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8492265
commit 405e0f8
Showing
29 changed files
with
165 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Alias | ||
|
||
RVM allows you to alias you rubies for your convience and pleasure. | ||
|
||
Usage | ||
rvm [options] alias source destination | ||
|
||
Source and Destination must be an RVM | ||
ruby string representing an RVM installed ruby. | ||
|
||
A gemset may be optionally included. | ||
|
||
Creating Aliases | ||
|
||
First select a RVM ruby. | ||
|
||
∴ rvm alias create ree-1.8.7-p2010.01 php | ||
|
||
Using Aliases | ||
|
||
Now that you have created an alias, you can use the alias in place of the longer rvm selector string. | ||
|
||
∴ rvm use php | ||
∴ ruby -v | ||
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.3.0], MBARI 0x6770, Ruby Enterprise Edition 2010.01 | ||
|
||
If you use any aliases that are rather funny, please hop in #rvm and let us know :) | ||
|
||
Deleting Aliases | ||
|
||
If you wish to delete an alias | ||
|
||
∴ rvm alias delete dotnet | ||
Listing Aliases | ||
|
||
You can also list all current aliases | ||
|
||
∴ rvm alias list | ||
php => ree-1.8.7-p2010.01 | ||
lisp => maglev-head | ||
python => rbx-head | ||
|
||
Documentation: | ||
|
||
http://rvm.beginrescueend.com/rubies/alias/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Benchmark | ||
|
||
If you have a bit of code that you would like to benchmark across several versions of ruby all at once you can now do this easily with RVM. Given: | ||
|
||
∴ cat increment.rb | ||
y=0 | ||
1000.times do |x| | ||
y = x + 1 | ||
end | ||
We can benchmark this code against multiple ruby versions very easily: | ||
|
||
∴ rvm 1.8.6,1.8.7,1.9.1,ree benchmark increment.rb | ||
|
||
|
||
Documentation: | ||
|
||
http://rvm.beginrescueend.com/set/benchmark/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Debug | ||
|
||
TODO | ||
|
||
Documentation: | ||
|
||
TODO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Fetch | ||
|
||
Documentation: | ||
TODO: For now see: | ||
http://rvm.beginrescueend.com/rubies/installing/ |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
source $rvm_scripts_path/initialize | ||
|
||
if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi | ||
|
||
trap "if [[ -d $rvm_tmp_path/ ]] && [[ -s $rvm_tmp_path/$$ ]] ; then rm -f $rvm_tmp_path/$$ > /dev/null 2>&1 ; fi ; exit" 0 1 2 3 15 | ||
|
||
rvm_help_path="${rvm_help_path:-"$rvm_path/help"}" | ||
|
||
command="$(echo $* | awk '{print $1}')" | ||
action="$(echo $* | awk '{print $2}')" | ||
# Reserved for future use: | ||
args=$(echo "$*" | awk '{$1=""; $2="" ; print}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') | ||
|
||
if [[ ! -z "$command" ]] && [[ -s "${rvm_help_path}/${command}" ]] ; then | ||
if [[ ! -z "$action" ]] && [[ -s "${rvm_help_path}/${command}/${action}" ]] ; then | ||
cat "${rvm_help_path}/${command}/${action}" | ${PAGER:-less} | ||
else | ||
cat "${rvm_help_path}/${command}" | ${PAGER:-less} | ||
fi | ||
else | ||
cat "${rvm_path:-$HOME/.rvm}/README" | ${PAGER:-less} | ||
$rvm_scripts_path/log "info" "\nFor help with a specific command:\n $(builtin cd "${rvm_help_path}" ; \ls)" | ||
fi | ||
|
||
$rvm_scripts_path/log "info" "\nFor additional information please visit RVM's documentation website:\n http://rvm.beginrescueend.com/\n" | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters