Skip to content

Commit

Permalink
rvm list | sort
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Jan 3, 2012
1 parent 26710ca commit db70853
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/list
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ list_gemsets()

current_ruby="$(__rvm_env_string)"

all_rubies="$(list_strings)"
all_rubies="$(list_strings | sort)"

printf "%b" "\nrvm gemsets\n"

versions=($(
builtin cd "${rvm_gems_path:-"$rvm_path/gems"}/"
find . -maxdepth 1 -mindepth 1 -type d -print 2> /dev/null | \
awk '/[a-z]*-.*/ {print $NF}'
awk '/[a-z]*-.*/ {print $NF}' | sort
))

for version in "${versions[@]//.\/}"
Expand Down Expand Up @@ -184,7 +184,7 @@ list_gemset_strings()
{
typeset all_rubies ruby_name gemset gemsets

all_rubies="$(list_strings)"
all_rubies="$(list_strings | sort)"

gemsets=($(
builtin cd "${rvm_gems_path:-"$rvm_path/gems"}"
Expand Down Expand Up @@ -269,7 +269,7 @@ list_rubies()

rubies=($(
builtin cd "$rvm_rubies_path/"
find . -maxdepth 1 -mindepth 1 -type d 2> /dev/null
find . -maxdepth 1 -mindepth 1 -type d 2> /dev/null | sort
))

for version in "${rubies[@]//.\/}"
Expand Down

0 comments on commit db70853

Please sign in to comment.