Permalink
Browse files

Fixed(?) RVM gem list helper.

  • Loading branch information...
1 parent ed990f6 commit 69277bd5905479583c040063c5ac3874ccaad1a4 @jbhannah jbhannah committed Jun 6, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 plugins/rvm/rvm.plugin.zsh
@@ -36,9 +36,9 @@ function gems {
local current_ruby=`rvm-prompt i v p`
local current_gemset=`rvm-prompt g`
- gem list $@ | sed \
- -Ee "s/\([0-9\.]+( .+)?\)/$fg[blue]&$reset_color/g" \
- -Ee "s|$(echo $rvm_path)|$fg[magenta]\$rvm_path$reset_color|g" \
- -Ee "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
- -Ee "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
+ gem list $@ | sed -E \
+ -e "s/\([0-9\.]+( .+)?\)/$fg[blue]&$reset_color/g" \
+ -e "s|$(echo $rvm_path)|$fg[magenta]\$rvm_path$reset_color|g" \
+ -e "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
+ -e "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
}

0 comments on commit 69277bd

Please sign in to comment.