diff options
author | Robby Russell <robby@planetargon.com> | 2015-08-30 21:47:26 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-08-30 21:47:26 -0700 |
commit | 69a17150ad3b594edb0d18c43371a1ca2e85edbe (patch) | |
tree | 5eec3cc5a98194fd40a7599eeacd479d6651897e | |
parent | adff369c059ad4a9f6972cfd79c59193f593397c (diff) | |
parent | d20c111d78f52dfe81bc632532774d3715feb4e3 (diff) | |
download | zsh-69a17150ad3b594edb0d18c43371a1ca2e85edbe.tar.gz zsh-69a17150ad3b594edb0d18c43371a1ca2e85edbe.tar.bz2 zsh-69a17150ad3b594edb0d18c43371a1ca2e85edbe.zip |
Merge pull request #4239 from yous/fix-linux-gems
rvm plugin: Fix `gems` to work on Linux machine
-rw-r--r-- | plugins/rvm/rvm.plugin.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/rvm/rvm.plugin.zsh b/plugins/rvm/rvm.plugin.zsh index 234ac1642..53e809aaf 100644 --- a/plugins/rvm/rvm.plugin.zsh +++ b/plugins/rvm/rvm.plugin.zsh @@ -61,11 +61,11 @@ 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" } function _rvm_completion { |