Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Defaulting 'rvm list' to 'rvm list rubies'.

  • Loading branch information...
commit bc5469bd184e104b312517522a150c50e74f3e59 1 parent 8248e97
@wayneeseguin wayneeseguin authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/utility
View
5 scripts/utility
@@ -364,15 +364,16 @@ __rvm_list_strings() {
# This is not meant to be used with scripting. This is for interactive mode usage only.
__rvm_list() {
action="$(echo $rvm_ruby_args | awk '{print $1}')"
+
if [[ "known" = "$action" ]] ; then
__rvm_list_known
elif [[ "default" = "$action" ]] ; then
__rvm_list_default
- elif [[ "rubies" = "$action" ]] ; then
+ elif [[ -z "$action" ]] || [[ "rubies" = "$action" ]] ; then
__rvm_list_rubies
elif [[ "strings" = "$action" ]] ; then
__rvm_list_strings
- else
+ else # help
echo -e "Usage: rvm list {known,default,rubies,strings}"
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.