Permalink
Browse files

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

  • Loading branch information...
wayneeseguin committed Feb 24, 2010
1 parent 8248e97 commit bc5469bd184e104b312517522a150c50e74f3e59
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/utility
View
@@ -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
}

0 comments on commit bc5469b

Please sign in to comment.