Browse Source

rbenv: fix current_gemset

Fixes #8925
Co-authored-by: Josh Goodall <inopinatus@inopinatus.org>
Marc Cornellà 3 years ago
parent
commit
8755c5f101
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/rbenv/rbenv.plugin.zsh

+ 1 - 1
plugins/rbenv/rbenv.plugin.zsh

@@ -34,7 +34,7 @@ if [[ $FOUND_RBENV -eq 1 ]]; then
     }
 
     function current_gemset() {
-        echo "$(rbenv gemset active 2>/dev/null | sed -e ":a" -e '$ s/\n/+/gp;N;b a' | head -n1)"
+        echo "$(rbenv gemset active 2>/dev/null)" | tr ' ' '+'
     }
 
     function gems() {