diff options
author | Yohann Bianchi <sbooob@gmail.com> | 2013-02-18 10:13:03 +0100 |
---|---|---|
committer | Yohann Bianchi <sbooob@gmail.com> | 2013-02-18 10:13:03 +0100 |
commit | 5eb3ec6428809fcf02d724f913201abbd04a88a6 (patch) | |
tree | 9223eb60391711c491796f0cb23469882c6d1ba9 /plugins/rbenv | |
parent | 28b737416fe1eadd1a0e0bad460941651ac20e49 (diff) | |
parent | fce68bbba0be99cfd49f9e46572b2d12d0a86d45 (diff) | |
download | zsh-5eb3ec6428809fcf02d724f913201abbd04a88a6.tar.gz zsh-5eb3ec6428809fcf02d724f913201abbd04a88a6.tar.bz2 zsh-5eb3ec6428809fcf02d724f913201abbd04a88a6.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/rbenv')
-rw-r--r-- | plugins/rbenv/rbenv.plugin.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/rbenv/rbenv.plugin.zsh b/plugins/rbenv/rbenv.plugin.zsh index d855c2445..fb9df4bdd 100644 --- a/plugins/rbenv/rbenv.plugin.zsh +++ b/plugins/rbenv/rbenv.plugin.zsh @@ -32,11 +32,11 @@ for rbenvdir in "${rbenvdirs[@]}" ; do function gems { local rbenv_path=$(rbenv prefix) - gem list $@ | sed \ - -Ee "s/\([0-9\.]+( .+)?\)/$fg[blue]&$reset_color/g" \ - -Ee "s|$(echo $rbenv_path)|$fg[magenta]\$rbenv_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-9a-z, \.]+( .+)?\)/$fg[blue]&$reset_color/g" \ + -e "s|$(echo $rbenv_path)|$fg[magenta]\$rbenv_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 rbenv_prompt_info() { |